#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p, k = 0;
  string s = "/", ss = "", s1;
  cin >> n;
  while (n--) {
    cin >> s1;
    ss = ss + s1 + '*';
    cin >> s1;
    ss = ss + s1;
    p = s.find('/' + ss + '/');
    if (p == -1) {
      s = s + ss + '/';
      k++;
    }
    ss = "";
  }
  cout << k;
  return 0;
}
