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

int main() {
    int n;
    scanf("%d", &n);
    
    char str[n][12];
    int vec[n];
    
    for (int i = 0; i < n; ++i){
        scanf("%s", str[i]);
    }
    int count = 1;
    for (int i = 0; i < 1; ++i){
        for (int j = i+1; j < n; ++j){
            if (strcmp(str[i], str[j]) != 0)
                count += 1;
        }
    }
    printf("%d\n", count);
    
    
    return 0;
}
