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

int is_kw(char *b) {
    char *kw[] = {"int", "char", "if", "else", "while", "for"};

    for (int i = 0; i < 6; i++)
        if (!strcmp(b, kw[i])) return 1;

    return 0;
}

int main() {
    FILE *f = fopen("input.txt", "r");
    char b[20], c;

    while ((c = fgetc(f)) != EOF) {
        int i = 0;

        while (isalnum(c) || c == '_') {
            b[i++] = c;
            c = fgetc(f);
        }

        if (i > 0) {
            b[i] = '\0';

            if (is_kw(b))
                printf("%s : Keyword\n", b);
            else if (isdigit(b[0]))
                printf("%s : Number\n", b);
            else
                printf("%s : Identifier\n", b);
        }

        if (strchr("+-*/%=", c))
            printf("%c : Operator\n", c);
    }

    fclose(f);
    return 0;
}