    #include<iostream>
    #include<vector>
    #include<string>
    using namespace std;
    int main() {
    	int N;
    	int c=0;
    	cin >> N;
    	std::string str[N];
    	
      for (int i=0;i<N;i++){
      	cin >> str[i];
        for (int j=0;j<i;j++){
        	if(str[j]==str[i]){
            	c++;
            }
        }
      }
      cout << N-c << endl;
    }