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

public class Main {
	public static void main(String[] args) throws IOException{
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException{
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main public static void main(String[] args) throws IOException{
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} main {
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} final int DATAMAX = 10; DATAMAX 10 int a[] = new int[DATAMAX]; a new int[DATAMAX] DATAMAX InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i < DATAMAX i DATAMAX i++ i++ i {
			a[i] = Integer.parseInt(br.readLine());
		} {
			a[i] = Integer.parseInt(br.readLine());
		} a[i] = Integer.parseInt(br.readLine()) a[i] a i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		} int i = 0; int i = 0; i 0 i < DATAMAX i DATAMAX i++ i++ i {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		} {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		} for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			} int j = i+1; int j = i+1; j i+1 i 1 j < DATAMAX j DATAMAX j++ j++ j {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			} {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			} if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				} a[i] < a[j] a[i] a i a[j] a j {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				} int tmp = a[i]; tmp a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = tmp a[j] a j tmp 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 {
	public static void main(String[] args) throws IOException{
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		final int DATAMAX = 10;
		int a[] = new int[DATAMAX];
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		for (int i = 0; i < DATAMAX; i++) {
			a[i] = Integer.parseInt(br.readLine());
		}
		for (int i = 0; i < DATAMAX; i++) {
			for (int j = i+1; j < DATAMAX; j++) {
				if (a[i] < a[j]) {
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}
		for (int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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