import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    }
}
     import java.util.Scanner; Scanner java.util public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    }
} Main public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    } main {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    } Scanner scan = new Scanner (System.in); scan new Scanner (System.in) int[] hills = new int[10]; hills new int[10] 10 for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
	    hills[i] = scan.nextInt();
	} {
	    hills[i] = scan.nextInt();
	} hills[i] = scan.nextInt() hills[i] hills i scan.nextInt() scan.nextInt scan for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	} {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	} for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    } int j = i+1; int j = i+1; j i+1 i 1 j < 10 j 10 j++ j++ j {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    } {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    } if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		} hills[i] < hills[j] hills[i] hills i hills[j] hills j {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		} int tmp = hills[i]; tmp hills[i] hills i hills[i] = hills[j] hills[i] hills i hills[j] hills j hills[j] = tmp hills[j] hills j tmp System.out.println(hills[0]) System.out.println System.out System System.out hills[0] hills 0 System.out.println(hills[1]) System.out.println System.out System System.out hills[1] hills 1 System.out.println(hills[2]) System.out.println System.out System System.out hills[2] hills 2 String[] args args public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    }
} public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	int[] hills = new int[10];
	for (int i = 0; i < 10; i++) {
	    hills[i] = scan.nextInt();
	}
	for (int i = 0; i < 10; i++) {
	    for (int j = i+1; j < 10; j++) {
		if (hills[i] < hills[j]) {
		    int tmp = hills[i];
		    hills[i] = hills[j];
		    hills[j] = tmp;
		}
	    }
	}
	System.out.println(hills[0]);
	System.out.println(hills[1]);
	System.out.println(hills[2]);
    }
}
    