#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
vector<string> s;
for(int i=0; i<n; i++)
{
string str;
cin >> str;
s.push_back(str);
}
sort(s.begin(), s.end()); // 升序排序
for(vector<string>::iterator it = s.begin(); it!=s.end(); it++)
{
cout << *it << endl;
}
}
京公网安备 11010502036488号