import std.stdio,
       std.string,
       std.conv,
       std.algorithm;

void main(){
  int[] lists;
  foreach(i; 0..10){
    lists.length++;
    lists[i] = readln.chomp.to!int;
  }
  
  sort!("a > b")(lists);

  foreach(e; lists[0..3])
   writeln(e);
}