import std.stdio;
import std.algorithm;

void main(){
 int [] a;
 a.length = 10;
 for(int i=0;i<10;i++){
	readf("%d\n",&a[i]);
 }
 static bool greater(int x,int y){
   return x > y;
 }
 sort!(greater)(a);
 for(int i=0;i<3;i++){
	writeln(a[i]);
 }
}