#include using namespace std; int main() { int N; cin >> N >> ws; set S; string A; while (getline(cin, A)) S.insert(A); for (auto s : S) cout << s << "\n"; }