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