#include <bits/stdc++.h>
using namespace std;
string s[101], r, t;
int n, c, x;
int main() {
  cin >> n;
  n--;
  c = 1;
  cin >> r >> t;
  s[0] = r + " " + t;
  while (n--) {
    cin >> r >> t;
    r += " " + t;
    x = 1;
    for (int i = 0; i < c; i++) {
      if (s[i].compare(r) == 0) x *= 0;
    }
    if (x) s[c++] = r;
  }
  cout << c;
}
