import std.stdio;
import std.conv;
import std.algorithm;
import std.string;
import std.file;
 
int main() {
        int[] hs;
        string l;
        int h;
        while((l = readln()).length >= 2) hs ~= to!int(to!float(l.split()[0]));
        sort!("a > b")(hs);
        printf("%d\n", hs[0]);
        printf("%d\n", hs[1]);
        printf("%d\n", hs[2]);
        return 0;
}