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

int compare_char(const void* left, const void* right) {
    char *left_char = (char *)left;
    char *right_char = (char *)right;

    return strcmp( left_char, right_char );
}

int main(void)
{
  	int	n;
  	char	s[200002][11];
  	int	i;
  	int	cnt;
  
  	scanf("%d\n", &n);

  	for(i=0; i<n; i++)
    {
      	scanf("%s\n", s[i]);
    }
    
  	qsort(s, n, sizeof(s[0]), compare_char);

  	cnt = 1;
  	for(i=0; i<n-1; i++)
    {
      	if (compare_char(s[i], s[i+1]) != 0)
          	cnt++;
    }
  
  	printf("%d", cnt);
  	return (0);
}