#include <bits/stdc++.h>
using namespace std;
map<string, int> a;
int main() {
  int n;
  while (cin >> n) {
    int ans = 0;
    a.begin();
    for (int i = 0; i < n; i++) {
      string x;
      cin >> x;
      x += ' ';
      string s;
      cin >> s;
      x += s;
      if (a[x] == 0) {
        ans++;
        a[x] = 1;
      }
    }
    cout << ans << endl;
  }
  return 0;
}
