#include <bits/stdc++.h>
using namespace std;
long long n, ans;
string s;
map<string, bool> vis;
signed main() {
  scanf("%lld", &n), getchar();
  for (long long i = 1; i <= n; i++) {
    getline(cin, s);
    if (!vis[s]) ans++;
    vis[s] = 1;
  }
  printf("%lld\n", ans);
  return 0;
}
