import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

 class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str ArrayList<Integer> al = new ArrayList<Integer>(); al new ArrayList<Integer>() try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } NumberFormatException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
                al.add( Integer.parseInt(str) );
            } al.add( Integer.parseInt(str) ) al.add al Integer.parseInt(str) Integer.parseInt Integer str Collections.sort(al) Collections.sort Collections al Collections.reverse(al) Collections.reverse Collections al for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            System.out.println(al.get(i));
        } {
            System.out.println(al.get(i));
        } System.out.println(al.get(i)) System.out.println System.out System System.out al.get(i) al.get al i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

 class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    }
}