import java.util.Scanner;
import java.util.Arrays;

class Main {
  public static void main(String[] args) {
  	
  	final int N = 10;
  	int[] a = new int[N];
  	
  	Scanner sc = new Scanner(System.in);
  	
  	for(int i = 0; i < N; ++i) {
	  	a[i] = sc.nextInt();
  	}
  	
  	Arrays.sort(a);
  	
  	for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	}
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main {
  public static void main(String[] args) {
  	
  	final int N = 10;
  	int[] a = new int[N];
  	
  	Scanner sc = new Scanner(System.in);
  	
  	for(int i = 0; i < N; ++i) {
	  	a[i] = sc.nextInt();
  	}
  	
  	Arrays.sort(a);
  	
  	for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	}
  }
} Main public static void main(String[] args) {
  	
  	final int N = 10;
  	int[] a = new int[N];
  	
  	Scanner sc = new Scanner(System.in);
  	
  	for(int i = 0; i < N; ++i) {
	  	a[i] = sc.nextInt();
  	}
  	
  	Arrays.sort(a);
  	
  	for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	}
  } main {
  	
  	final int N = 10;
  	int[] a = new int[N];
  	
  	Scanner sc = new Scanner(System.in);
  	
  	for(int i = 0; i < N; ++i) {
	  	a[i] = sc.nextInt();
  	}
  	
  	Arrays.sort(a);
  	
  	for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	}
  } final int N = 10; N 10 int[] a = new int[N]; a new int[N] N Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 Arrays.sort(a) Arrays.sort Arrays a for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
  		System.out.println(a[N - i - 1]);
  	} {
  		System.out.println(a[N - i - 1]);
  	} System.out.println(a[N - i - 1]) System.out.println System.out System System.out a[N - i - 1] a N - i - 1 N - i - 1 N i 1 String[] args args
import java.util.Scanner;
import java.util.Arrays;

class Main {
  public static void main(String[] args) {
  	
  	final int N = 10;
  	int[] a = new int[N];
  	
  	Scanner sc = new Scanner(System.in);
  	
  	for(int i = 0; i < N; ++i) {
	  	a[i] = sc.nextInt();
  	}
  	
  	Arrays.sort(a);
  	
  	for(int i = 0; i < 3; ++i) {
  		System.out.println(a[N - i - 1]);
  	}
  }
}