#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, c = 0;
  cin >> t;
  vector<pair<string, string>> arr;
  while (t--) {
    string s, s1;
    cin >> s >> s1;
    bool flag = true;
    for (auto x : arr) {
      if (x.first == s && x.second == s1) flag = false;
    }
    if (flag) {
      c++;
      arr.push_back(make_pair(s, s1));
    }
  }
  cout << c << "\n";
}
