#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s[n][2];
  int i, j, flag = 0, cou = 0;
  for (i = 0; i < n; i++) {
    cin >> s[i][0] >> s[i][1];
    flag = 0;
    for (j = i - 1; j >= 0; j--) {
      if (s[j][0] == s[i][0] && s[j][1] == s[i][1]) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cou++;
    }
  }
  cout << cou << endl;
}
