import std.stdio;
import std.array;
import std.conv;
import std.string;
void main(){
  string s;
  int[] heights;
  while((s = readln()) != ""){
    s = chomp(s);
    heights ~= to!int(s);
  }
  heights.sort;
  heights.reverse;
  for(int i = 0; i < 3; i++){
    writeln(heights[i]);
  }
}