import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] yama = new int[10]; yama new int[10] 10 for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i <= 9 i 9 i++ i++ i {
			yama[i] = Integer.parseInt(br.readLine());
		} {
			yama[i] = Integer.parseInt(br.readLine());
		} yama[i] = Integer.parseInt(br.readLine()) yama[i] yama i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int dami = 0; dami 0 for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		} int i = 0; int i = 0; i 0 i <= 8 i 8 i++ i++ i {
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		} {
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		} int x = i; x i for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			} int j = i + 1; int j = i + 1; j i + 1 i 1 j <= 9 j 9 j++ j++ j {
				if(yama[x] < yama[j]){
					x = j;
				}
			} {
				if(yama[x] < yama[j]){
					x = j;
				}
			} if(yama[x] < yama[j]){
					x = j;
				} yama[x] < yama[j] yama[x] yama x yama[j] yama j {
					x = j;
				} x = j x j if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			} x != i x i {
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			} dami = yama[x] dami yama[x] yama x yama[x] = yama[i] yama[x] yama x yama[i] yama i yama[i] = dami yama[i] yama i dami for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		} int i = 0; int i = 0; i 0 i <= 2 i 2 i++ i++ i {
			System.out.println(yama[i]);
		} {
			System.out.println(yama[i]);
		} System.out.println(yama[i]) System.out.println System.out System System.out yama[i] yama i String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] yama = new int[10];
		for(int i = 0;i <= 9;i++){
			yama[i] = Integer.parseInt(br.readLine());
		}
		int dami = 0;
		for(int i = 0;i <= 8; i++){
			int x = i;
			for(int j = i + 1;j <= 9;j++){
				if(yama[x] < yama[j]){
					x = j;
				}
			}
			if(x != i){
				dami = yama[x];
				yama[x] = yama[i];
				yama[i] = dami;
			}
		}
		for(int i = 0;i <= 2;i++){
			System.out.println(yama[i]);
		}
	}
}