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

int main()
{
    vector<string>vs;
    int n;
    cin>>n;
    string s;
    getchar();
    while(n--)
    {
        cin>>s;
        vs.push_back(s);
    }
    cout<<vs.size()<<endl;
}
