#include <set>
#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
int main()
{
std::set<std::string> myset(std::istream_iterator<std::string>(std::cin), std::istream_iterator<std::string>());
std::copy(myset.begin(), myset.end(), std::ostream_iterator<std::string>(std::cout, "\n"));
return 0;
}
CiNpbmNsdWRlIDxzZXQ+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgoKaW50IG1haW4oKQp7CiAgc3RkOjpzZXQ8c3RkOjpzdHJpbmc+IG15c2V0KHN0ZDo6aXN0cmVhbV9pdGVyYXRvcjxzdGQ6OnN0cmluZz4oc3RkOjpjaW4pLCBzdGQ6OmlzdHJlYW1faXRlcmF0b3I8c3RkOjpzdHJpbmc+KCkpOwogIHN0ZDo6Y29weShteXNldC5iZWdpbigpLCBteXNldC5lbmQoKSwgc3RkOjpvc3RyZWFtX2l0ZXJhdG9yPHN0ZDo6c3RyaW5nPihzdGQ6OmNvdXQsICJcbiIpKTsKICByZXR1cm4gMDsKfQ==