#include <bits/stdc++.h>
using namespace std;
int read_num() {
  int num = 0;
  char ch;
  ch = getchar();
  while (!isdigit(ch)) ch = getchar();
  do {
    num = num * 10 + (ch - '0');
    ch = getchar();
  } while (isdigit(ch));
  return num;
}
int main() {
  int n;
  string s1, s2;
  cin >> n;
  vector<pair<string, string> > v;
  for (int i = 0; i < (int)(n); i++) {
    cin >> s1 >> s2;
    v.push_back(make_pair(s1, s2));
  }
  int cnt = 0;
  for (int i = 0; i < (int)(n); i++) {
    bool boo = true;
    for (int j = (int)(i + 1); j < (int)(n); j++) {
      if (v[i].first == v[j].first && v[j].second == v[i].second) boo = false;
    }
    if (boo) cnt++;
  }
  cout << cnt << endl;
}
