import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
class Main{
    public static void main(String args[]){
	try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main{
    public static void main(String args[]){
	try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	}
    }
} Main public static void main(String args[]){
	try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	}
    } main {
	try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	}
    } try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	} catch(Exception e){
	    System.out.printf("error");
	} Exception e {
	    System.out.printf("error");
	} System.out.printf("error") System.out.printf System.out System System.out "error" {
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	} int x[] = new int[10]; x new int[10] 10 int a[] = {0,0,0}; a {0,0,0} 0 0 0 int temp; temp 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<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    } {
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    } x[i] = Integer.parseInt(br.readLine()) x[i] x i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		} a[0] < x[i] a[0] a 0 x[i] x i {
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		} temp = a[0] temp a[0] a 0 a[0] = x[i] a[0] a 0 x[i] x i x[i] = temp x[i] x i temp if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		} a[1] < x[i] a[1] a 1 x[i] x i {
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		} temp = a[1] temp a[1] a 1 a[1] = x[i] a[1] a 1 x[i] x i x[i] = temp x[i] x i temp if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		} a[2] < x[i] a[2] a 2 x[i] x i {
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		} temp = a[2] temp a[2] a 2 a[2] = x[i] a[2] a 2 x[i] x i x[i] = temp x[i] x i temp System.out.println(a[0]) System.out.println System.out System System.out a[0] a 0 System.out.println(a[1]) System.out.println System.out System System.out a[1] a 1 System.out.println(a[2]) System.out.println System.out System System.out a[2] a 2 String args[] args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
class Main{
    public static void main(String args[]){
	try{
	    int x[] = new int[10];
	    int a[] = {0,0,0};
	    int temp;
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    for(int i=0;i<10;i++){
		x[i] = Integer.parseInt(br.readLine());
		if(a[0] < x[i]){
		    temp = a[0];
		    a[0] = x[i];
		    x[i] = temp;
		}
		if(a[1] < x[i]){
		    temp = a[1];
		    a[1] = x[i];
		    x[i] = temp;
		}
		if(a[2] < x[i]){
		    temp = a[2];
		    a[2] = x[i];
		    x[i] = temp;
		}
	    }
	    System.out.println(a[0]);
	    System.out.println(a[1]);
	    System.out.println(a[2]);
	}
	catch(Exception e){
	    System.out.printf("error");
	}
    }
}