import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
} Main public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

} main {

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

} int arr[] = new int [10]; arr new int [10] 10 BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); read new BufferedReader(new InputStreamReader(System.in)) for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {

		 arr[i] = Integer.parseInt(read.readLine());

		} {

		 arr[i] = Integer.parseInt(read.readLine());

		} arr[i] = Integer.parseInt(read.readLine()) arr[i] arr i Integer.parseInt(read.readLine()) Integer.parseInt Integer read.readLine() read.readLine read Arrays.sort(arr) Arrays.sort Arrays arr for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	} int i = 9; int i = 9; i 9 i>6 i 6 i-- i-- i {

			 System.out.println(arr[i]);

	} {

			 System.out.println(arr[i]);

	} System.out.println(arr[i]) System.out.println System.out System System.out arr[i] arr i String[] a a public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
} public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=0; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
}