import std.stdio;
import std.string;
import std.conv;

void main() {
  int[10] xs;
  for(uint i = 0; i < 10; i++) {
    xs[i] = to!int(chomp(readln()));
  }

  xs.sort;

  writeln(xs[9]);
  writeln(xs[8]);
  writeln(xs[7]);
}