#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n;
  	cin >> n;
  	vector<string> gacha(n);
  	for(int i = 0; i < n; i++)
    {
    	cin >> gacha.at(i);
    }
  	sort(gacha.begin(),gacha.end());
  	int count = 1;
  	for(int i = 0; i < n-1; i++)
    {
    	if(gacha.at(i) != gacha.at(i+1))
        {
        	count++;
        }
    }
  	cout << count << endl;
}
