#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for (ll i=0;i<n;++i)

int main() {
  ll n,ans=1;
  string s;
  cin >> n;
  vector<string> sc;
  
  rep(i,n) {
    cin >> s;
    sc.push_back(s);
  }
  sort(sc.begin(),sc.end());
  rep(i,n-1) {
    if ((sc[i])!=(sc[i+1])) ans++;
  }

  cout << ans << endl;
  return 0;
}