#include <bits/stdc++.h>
using namespace std;
map<string, bool> leaf;
int main() {
  int n, ans = 0;
  ;
  leaf.clear();
  scanf("%d ", &n);
  char s[50];
  while (n--) {
    gets(s);
    if (!leaf[s]) {
      leaf[s] = 1;
      ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
