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

void strsort(char *p, int a, int b){
    
    qsort(p, a, b, (int(*)(const void*, const void*))strcmp);
}

int main(void){

    int N = 0;
    int count = 0;
    scanf("%d", &N);

    char S[N][10];

    for (int i = 0; i < N; i++){
        scanf("%s", S[i]);
    }

    strsort((char *)S, N, 10);

    for (int j = 0; j < N - 1; j++){
        if (strcmp(S[j], S[j + 1]) != 0){
            count++;
        } 
    }

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

    return 0;
}