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

int main(void){

    int num, i, j, temp;
    char s[200000][10] = {'\0'};
    int count = 0;
    int flag = 0;

    scanf("%d", &num);

    for(i = 0; i < num; i++){
        flag = 0;
        scanf("%s", s[i]);
        temp = i;
        for(j = 0; j < temp; j++){
            if(strcmp(s[j], s[temp]) == 0){
                flag = 1;
                break;
            }

        }

        if(flag == 1){
            continue;
        }

        if(temp == j){
            count++;
        }


    }

    printf("%d\n", count);



    return 0;
}