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

int main(void){

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

    char S[N][10];
    int check[200000] = {0};

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

        while (S[i][j] != '\0'){
            sum += S[i][j];
            j++;
        }
        check[sum]++;
        sum = 0;
        j = 0;
    }
/*
        for (int j = 0; j < i; j++){

            if (i > 1 && check[i - 1] == 1 || strcmp(S[i], S[j]) == 0){
                count++;
                check[i] = 1;
                break;
            }             
        }
    }
*/  
    for (int k = 0; k < 20000; k++){
        if (check[k] != 0){
            count++;
        }
    }  
    printf("%d\n", count);

    return 0;
}