#include    <iostream>
#include    <algorithm>
#include    <vector>
#include    <string>

using namespace std;

int main(){
  vector<string> result;
  int i;
  string str;
  result.clear();
  cin>> i;
  for(int k = 0; k < i; k++){
    cin >> str;
    result.push_back(str);
  }
  
  sort(result.begin(), result.end());
  result.erase(unique(result.begin(), result.end()), result.end());;
  
  cout << result.size() << "\n";
  return 0;
}