#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main() {
	int N;
	int c=0;
	cin >> N;
	std::vector<std::string>str;
	
  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;
}