#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef vector<ll> vl ;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;

#define rep(i,N) for(int i=0; i < (int)N; i++)
#define all(v) (v).begin(),(v).end()

const int INF = 100000002;

int main(){
	ll n; cin >> n;
	vector<string> d;
	rep(i,n){
		string s; cin >> s;
		if (count(d.begin(), d.end(), s)) continue;
		else d.push_back(s);
	}
	cout << (int) d.size() <<endl;
}