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


int main(){
    int n;
    scanf("%d",&n);
    typedef struct item{
        char name[10];
        struct item *next;
    }Item;

    Item *a=(struct item *)malloc(sizeof(struct item));
    Item *c;
    c=a;
    for(int i=0;i<n;i++){
        scanf("%s",c->name);
        if(i<n-1){
            Item *tmp=(struct item *)malloc(sizeof(struct item));
            c->next=tmp;
            c=c->next;
        }
        else c->next=NULL;
    }
    int count=n;
    c=a;
    while(1){
        Item *p=c;
        while((p->next)!=NULL){
           if( strcmp(c->name,(p->next)->name)==0) {
               Item *tmp;
               tmp=p->next;
               p->next=tmp->next;
               free(tmp);
               count--;
           }
           else{
               p=p->next;
           }
        }
        if((c->next)==NULL) break; 
        else c=c->next;
    }

    printf("%d\n",count);
    return 0;


}