#include <algorithm>
#include <bitset>
#include <climits>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>

using namespace std;
using ll = long long int;

int main() {
  ll N;
  cin >> N;

  set<string> st;
  for (ll i = 0; i < N; i++)
  {
    string s;
    cin >> s;
    st.insert(s);
  }

  cout << st.size() << endl;
  
}