#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "hashtable.h"



void hash_insert(struct hash_node *table[], char *key, int value) {
    // TODO: implement this function
    (void) table;
    (void) key;
    (void) value;
}

int hash_lookup(struct hash_node *table[], char *key, int *value_out) {
    // TODO: implement this function
    (void) table;
    (void) key;
    (void) value_out;
    return 0;
}


int main(void) {
    struct hash_node *table[TABLE_SIZE] = {NULL};
    char tok[50];
    while (scanf("%49s", tok) == 1 && strcmp(tok, "LOOKUP") != 0) {
        int v;
        if (scanf("%d", &v) != 1) { break; }
        hash_insert(table, tok, v);
    }
    while (scanf("%49s", tok) == 1) {
        int value;
        if (hash_lookup(table, tok, &value)) { printf("found, value %d\n", value); }
        else { printf("not found\n"); }
    }
    return 0;
}
