#include <bits/stdc++.h>
using namespace std;
map<string, int> m;
int main() {
  int n;
  cin >> n;
  getchar();
  for (int i = 0; i < n; i++) {
    string str;
    getline(cin, str);
    m[str] = 1;
  }
  int cnt = 0;
  for (map<string, int>::iterator it = m.begin(); it != m.end(); ++it) {
    cnt++;
  }
  cout << cnt << endl;
  return 0;
}
