#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  set<string> ms;
  string name;
  getline(cin, name);
  int count{};
  for (auto i = 0; i < n; ++i) {
    getline(cin, name);
    if (ms.count(name))
      ++count;
    else
      ms.insert(name);
  }
  cout << n - count << "\n";
  return 0;
}
