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

struct wordlist{
	char word[10];
	struct wordlist *right;
	struct wordlist *left;
};

struct wordlist* add(char *word,struct wordlist *root){
	if(root==NULL){
		root=(struct wordlist*)malloc(sizeof(struct wordlist));
		strcpy(root->word,word);
		root->right=NULL;
		root->left=NULL;
	}else if(strcmp(root->word,word)>0){
		root->left=add(word,root->left);
	}else if(strcmp(root->word,word)<0){
		root->right=add(word,root->right);
	}
	return root;
}

int search(struct wordlist*root,char *word){
	if(root==NULL){
		return 1;
	}else if(strcmp(root->word,word)==0){
		return 0;
	}else if(strcmp(root->word,word)>0){
		search(root->left,word);
	}else if(strcmp(root->word,word)<0){
		search(root->right,word);
	}
}

int main(void){
	struct wordlist *root=NULL;
	int n,count=0;
	scanf("%d",&n);
	char s[n][10];
	for(int i=0;i<n;i++){
		if(n==0){
			scanf("%s",s[i]);
			root=add(s[i],root);
			count+=1;
		}else{
			scanf("%s",s[i]);
			add(s[i],root);
			count+=search(root,s[i]);
		}
	}
	printf("%d",count);
}