#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, j;
  cin >> n;
  string str1, str2;
  map<pair<string, string>, int> arr;
  map<pair<string, string>, int>::iterator t = arr.begin();
  for (j = 0; j < n; j++) {
    cin >> str1 >> str2;
    t = arr.find(make_pair(str1, str2));
    if (t != arr.end()) {
      arr[make_pair(str1, str2)]++;
    } else {
      arr.insert(make_pair(make_pair(str1, str2), 1));
    }
  }
  cout << arr.size() << endl;
  return 0;
}
