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

#define DEBUG if(0)
#define lli long long int

int main()
{
  set<string> st;
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++)
  {
    string s;
    cin >> s;
    st.insert(s);
  }
  cout << st.size() << endl;
  return 0;
}
/*
  1 3 2 =
  1st step: R =[1,2,3], count=[1,1,1]
  2nd step: R=[1,2,x], count=[1,1,0]
  3rd step: R=[2,2,x], count=[0,2,0]
*/