#include <iostream>                                                                                                                                                                                           
#include <algorithm>                                                                                                                                                                                          
#include <vector>                                                                                                                                                                                             
using namespace std;                                                                                                                                                                                          
                                                                                                                                                                                                              
int main()                                                                                                                                                                                                    
{                                                                                                                                                                                                             
    int a;                                                                                                                                                                                                    
    cin >> a;                                                                                                                                                                                                 
    vector<string> vc(a);                                                                                                                                                                                     
    for(int i = 0; i < a; i++){                                                                                                                                                                               
        cin >> vc.at(i);                                                                                                                                                                                      
    }                                                                                                                                                                                                         
                                                                                                                                                                                                              
    sort(vc.begin(), vc.end());                                                                                                                                                                               
    vc.erase(unique(vc.begin(), vc.end()), vc.end());                                                                                                                                                         
                                                                                                                                                                                                              
    cout << vc.size() << endl;                                                                                                                                                                                
    return 0;                                                                                                                                                                                                 
} 

Measured memory_bytes: 9600