
import java.util.Scanner;

public class Main {
	
	private static int a[];
	private static int N = 10;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	
	private static int a[];
	private static int N = 10;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main private static int a[]; a private static int N = 10; N 10 public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} main {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} Scanner sc = new Scanner( System.in ); sc new Scanner( System.in ) a = new int[N] a new int[N] N for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		} {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		} int max = i; max i for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			} int j = i+1; int j = i+1; j i+1 i 1 j < N j N j++ j++ j {
				if(a[j] > a[max]) {
					max = j;
				}
			} {
				if(a[j] > a[max]) {
					max = j;
				}
			} if(a[j] > a[max]) {
					max = j;
				} a[j] > a[max] a[j] a j a[max] a max {
					max = j;
				} max = j max j int t = a[i]; t a[i] a i a[i] = a[max] a[i] a i a[max] a max a[max] = t a[max] a max t for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(a[i]);
		} {
			System.out.println(a[i]);
		} System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args public class Main {
	
	private static int a[];
	private static int N = 10;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} public class Main {
	
	private static int a[];
	private static int N = 10;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main

import java.util.Scanner;

public class Main {
	
	private static int a[];
	private static int N = 10;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		a = new int[N];
		
		//入力
		for (int i = 0; i < N; i++) {
			a[i] = sc.nextInt();
		}
		
		//最大値選択法
		for (int i = 0; i < N; i++) {
			int max = i;
			for (int j = i+1; j < N; j++) {
				if(a[j] > a[max]) {
					max = j;
				}
			}
			int t = a[i];
			a[i] = a[max];
			a[max] = t;
		}
		
		//出力
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
}