#include <bits/stdc++.h>
using namespace std;
set<string> S;
int n;
int main() {
  scanf("%d", &n);
  string a, b, c;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    c = a + " " + b;
    S.insert(c);
  }
  printf("%d\n", S.size());
  return 0;
}
