#include <bits/stdc++.h>
using namespace std;
pair<string, string> lev[101];
int n;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    cin >> lev[i].first;
    cin >> lev[i].second;
  }
  sort(lev, lev + n);
  n = unique(lev, lev + n) - lev;
  printf("%d\n", n);
  return 0;
}
