#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
using namespace std;

template<typename A, typename B> bool chmin(A &a, const B &b){ return b < a && (a = b, true); }
template<typename A, typename B> bool chmax(A &a, const B &b){ return a < b && (a = b, true); }

int main(){
  int n,cnt = 1;
  cin >> n;
  string s[n];
  for (int i = 0; i < n; i++){
    cin >> s[i];
  }
  sort(s,s+n);
  for (int i = 1; i < n; i++){
    if (s[i] != s[i-1]){
      cnt += 1;
    }
  }
  cout << cnt << '\n';
  return 0;
}