#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  string Y[1000] = {};
  cin.ignore();
  for (int i = 0; i < N; i++) getline(cin, Y[i]);
  int result = 0;
  for (int i = 0; i < N; i++) {
    bool found = false;
    for (int j = 0; j < i; j++) {
      if (Y[i] == Y[j]) found = true;
    }
    if (found == false) result++;
  }
  cout << result;
}
