#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  int n;
  string a[110];
  string tmp;
  int sol = 0;
  cin >> n;
  cin.ignore();
  for (long long i = 1; i <= n; i++) {
    bool f = true;
    getline(cin, tmp);
    for (long long i = 1; i <= sol; i++)
      if (a[i] == tmp) f = false;
    if (f) a[++sol] = tmp;
  }
  cout << sol;
}
