#include <bits/stdc++.h>
using namespace std;
int main() {
  int tCase;
  cin >> tCase;
  int out = tCase;
  string leaves[tCase], basura;
  getline(cin, basura);
  for (int i = 0; i < tCase; i++) getline(cin, leaves[i]);
  sort(leaves, leaves + tCase);
  for (int i = 0; i < tCase - 1; i++) {
    if (leaves[i] == leaves[i + 1]) out--;
  }
  cout << out << endl;
}
