#include <stdio.h>
#include <string.h>
using namespace std;

char *keywords[] = {
    "auto","break","case","char","const","continue","default","do","double",
    "else","enum","extern","float","for","goto","if","int","long","register",
    "return","short","signed","sizeof","static","struct","switch","typedef",
    "union","unsigned","void","volatile","while"
};

int main() {
    char word[50];
    int count = 0;
    int totalKeywords = sizeof(keywords) / sizeof(keywords[0]);

    printf("Enter words one by one (type END to stop):\n");

    while (1) {
        scanf("%s", word);

        if (strcmp(word, "END") == 0) 
            break;

        for (int i = 0; i < totalKeywords; i++) {
            if (strcmp(word, keywords[i]) == 0) {
                count++;
                break;
            }
        }
    }

    printf("Total C keywords entered: %d\n", count);
    return 0;
}