#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, ans;
  string prize;
  cin >> N;
  ans = 0;
  vector<string> vec(N);

  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }

  for (int i = 1; i <= N; i++) {
    prize = vec.at(i-1);
    for (int j = 0; j < i; j++) {
      if (i-1 != j && prize == vec.at(j)) break;
      if (j+1 == i) ans+=1;
      }
    }
  cout << ans << endl;
}