import java.io.*;

class Main {
    public static void main (String args[]) throws IOException {
	InputStreamReader is = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);

	int tall[] = new int[10];
	int high[] = new int[3];
	int n = 0;
	
	for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	}
	
	for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	}
	
        for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	}
	
    }
} import java.io.*; io.* java class Main {
    public static void main (String args[]) throws IOException {
	InputStreamReader is = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);

	int tall[] = new int[10];
	int high[] = new int[3];
	int n = 0;
	
	for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	}
	
	for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	}
	
        for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	}
	
    }
} Main public static void main (String args[]) throws IOException {
	InputStreamReader is = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);

	int tall[] = new int[10];
	int high[] = new int[3];
	int n = 0;
	
	for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	}
	
	for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	}
	
        for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	}
	
    } main {
	InputStreamReader is = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);

	int tall[] = new int[10];
	int high[] = new int[3];
	int n = 0;
	
	for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	}
	
	for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	}
	
        for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	}
	
    } InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) int tall[] = new int[10]; tall new int[10] 10 int high[] = new int[3]; high new int[3] 3 int n = 0; n 0 for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
	    tall[i] = Integer.parseInt(br.readLine());
	} {
	    tall[i] = Integer.parseInt(br.readLine());
	} tall[i] = Integer.parseInt(br.readLine()) tall[i] tall i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	} {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	} for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    } int j=0; int j=0; j 0 j<10 j 10 j++ j++ j {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    } {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    } if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		} high[i] < tall[j] high[i] high i tall[j] tall j {
		    high[i] = tall[j];
		    n = j;
		} high[i] = tall[j] high[i] high i tall[j] tall j n = j n j tall[n] = 0 tall[n] tall n 0 for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
	    System.out.println(high[i]);
	} {
	    System.out.println(high[i]);
	} System.out.println(high[i]) System.out.println System.out System System.out high[i] high i String args[] args
import java.io.*;

class Main {
    public static void main (String args[]) throws IOException {
	InputStreamReader is = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);

	int tall[] = new int[10];
	int high[] = new int[3];
	int n = 0;
	
	for (int i=0; i<10; i++) {
	    tall[i] = Integer.parseInt(br.readLine());
	}
	
	for (int i=0; i<3; i++) {
	    for (int j=0; j<10; j++) {
		if (high[i] < tall[j]) {
		    high[i] = tall[j];
		    n = j;
		}
	    }
	    tall[n] = 0;
	}
	
        for (int i=0; i<3; i++) {
	    System.out.println(high[i]);
	}
	
    }
}