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[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   }
}
    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[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   }
} Main public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   } main {
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] kazu = new int[10]; kazu new int[10] 10 for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   } int a = 0; int a = 0; a 0 a <= 9 a 9 a++ a++ a {
   kazu[a] = Integer.parseInt(br.readLine());
   } {
   kazu[a] = Integer.parseInt(br.readLine());
   } kazu[a] = Integer.parseInt(br.readLine()) kazu[a] kazu a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int n = 10; n 10 int kari; kari for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   } int b = 0; int b = 0; b 0 b <= n-2 b n-2 n 2 b++ b++ b {
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   } {
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   } int x = b; x b for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   } int c = b+1; int c = b+1; c b+1 b 1 c <= n-1 c n-1 n 1 c++ c++ c {
   if(kazu[x] < kazu[c]){
   x = c;
   }
   } {
   if(kazu[x] < kazu[c]){
   x = c;
   }
   } if(kazu[x] < kazu[c]){
   x = c;
   } kazu[x] < kazu[c] kazu[x] kazu x kazu[c] kazu c {
   x = c;
   } x = c x c if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   } x != b x b {
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   } kari = kazu[x] kari kazu[x] kazu x kazu[x] = kazu[b] kazu[x] kazu x kazu[b] kazu b kazu[b] = kari kazu[b] kazu b kari for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   } int d = 0; int d = 0; d 0 d <= 2 d 2 d++ d++ d {
   System.out.println(kazu[d]);
   } {
   System.out.println(kazu[d]);
   } System.out.println(kazu[d]) System.out.println System.out System System.out kazu[d] kazu d String[] args args public class Main{
   public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   }
} public class Main{
   public static void main(String[] args) throws IOException{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   }
} 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[] kazu = new int[10];
   for(int a = 0; a <= 9; a++){
   kazu[a] = Integer.parseInt(br.readLine());
   }
   int n = 10;
   int kari;
   for(int b = 0; b <= n-2; b++){
   int x = b;
   for(int c = b+1; c <= n-1; c++){
   if(kazu[x] < kazu[c]){
   x = c;
   }
   }
   if(x != b){
   kari = kazu[x];
   kazu[x] = kazu[b];
   kazu[b] = kari;
   }
   }
   for(int d = 0; d <= 2; d++){
   System.out.println(kazu[d]);
   }
   }
}
   