#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, int> m;
  string str;
  int leaves = 0;
  getline(cin, str);
  for (int i = 0; i < n; i++) {
    getline(cin, str);
    if (!m.count(str)) {
      leaves++;
      m[str] = 1;
    }
  }
  cout << leaves;
  ;
}
