#include <bits/stdc++.h>
using namespace std;
long long i, j, n, t, sum = 0, k, c1 = 1;
int main() {
  cin >> n;
  vector<string> c(n);
  vector<string> s(n);
  for (i = 0; i < n; i++) {
    cin >> c[i] >> s[i];
  }
  for (i = 1; i < n; i++) {
    k = 0;
    for (j = i - 1; j >= 0; j--) {
      if (c[i] == c[j] && s[i] == s[j]) {
        k++;
        if (k != 0) {
          break;
        }
      }
    }
    if (k == 0) {
      c1++;
    }
  }
  cout << c1;
}
