#include <stdio.h>
#include <string.h>
int main()
{
    
    int n;
    scanf("%d", &n);
    
         scanf("%c");
    char arr[n][20];
    for(int i = 0; i< n; i++){
       gets(arr[i]);
    }
        
    int numbers[n];
    for(int i =0; i< n; i++ ){
        int suma = 0;
        for(int j =0; j<strlen(arr[i]); j++ )
            suma+=arr[i][j];
        numbers[i] = suma;
    }
 
    int counter = 0;
 for(int i =0; i< n; i++ ){
      for(int j =1; j< n; j++ ){
          if(numbers[i]==numbers[j] && i!=j){
              counter++;
          }
      
      }
 }
 
 printf(" %d", n-counter);

    return 0;
}
