#include #include #include #include int main() { std::vector a; std::string b; while (std::getline(std::cin, b)) { a.push_back(b); } std::sort(a.rbegin(), a.rend()); for (size_t i = 0; i != a.size(); ++i) { std::cout << a[i] << "\n"; } }