#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(){
    int num,sum=0;
    string b[100];
    cin>>num;
    vector<string>a;
        for (int i=0;i<num;i++){
            cin>>b[i];
            a.push_back(b[i]);
        }
    sort(a.begin(),a.end());
    for (int i=0; i<num; i++) {
        if (a[i]==a[i+1]){
            sum++;
        }
    }
    
    cout<<num-sum;
  
      return 0;
}
