#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  string a[101], b[101];
  bool find = true;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i];
    if (i == 0)
      count++;
    else {
      for (int j = 0; j < i; j++)
        if (a[i] == a[j] && b[i] == b[j]) find = false;
      if (find == true) count++;
    }
    find = true;
  }
  cout << count;
  return 0;
}
