#include
#include
#include
int main()
{
const int n = 10;
std::vector nums(n);
for (int i = 0; i < n; ++i)
{
std::cin >> nums[i];
}
std::sort(nums.begin(), nums.end());
std::cout << nums[7] << " " << nums[8] << " " << nums[9] << std::endl;</p>
return 0;
}