#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
    int N , count = 0;
    cin >> N;
    vector <string> S(N);
    for(int i = 0; i < N; i++){
        cin >> S.at(i);
    }
    for (int i = 0; i < N; ++i) {
        for (int j = 0; j < N; ++j) {
            if(i != j && S.at(i) == S.at(j)){
                count++;
            }
        }
    }
    if(count == N * (N - 1)){
        cout << 1 << endl;
    }
    else{
        cout << N - count / 2 << endl;
    }
}