#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll int64_t
#define all(v) v.begin(), v.end()
#define bitrep(n) for(int bit=0;bit<(1<<n);bit++)


int main() {

int N; cin >> N ;

vector<string> S(N);

rep(i,N) cin>> S[i];

set<string> A;

rep(i,N) A.insert(S[i]);

cout << A.size() << endl;

return 0;
}