#include <iostream>
int main() {
 int a[10];
 for (int i = 0; i<10; i++)
  std::cin >> a[i];
 for (int i = 0; i<3; i++)
  for (int j = i+1; j<10; j++)
   if (a[j] > a[i]) {
    int tmp = a[j];
    a[j] = a[i];
    a[i] = tmp;
   }
 for (int i = 0; i<3; i++)
  std::cout << a[i] << std::endl;
 return 0;
}