#include <bits/stdc++.h>
using namespace std;
int main() {
  set<string> sets;
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    string s, s1;
    cin >> s >> s1;
    s = s + " " + s1;
    sets.insert(s);
  }
  cout << sets.size();
  return 0;
}
