#include using namespace std;int N,i;string s[109];int main(){for(cin>>N,i=N+1;i--;)getline(cin,s[i]);for(sort(s,s+N);i