import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = 10; n 10 int[] ary = new int[n]; ary new int[n] n for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            ary[i] = sc.nextInt();
        } {
            ary[i] = sc.nextInt();
        } ary[i] = sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        } {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        } int value = ary[i]; value ary[i] ary i for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            } int j = i-1; int j = i-1; j i-1 i 1 j-- j-- j {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            } {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            } if (j < 0) {
                    break;
                } j < 0 j 0 {
                    break;
                } break; if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                } ary[j] >= value ary[j] ary j value {
                    ary[j+1] = value;
                    break;
                } ary[j+1] = value ary[j+1] ary j+1 j 1 value break; ary[j+1] = ary[j] ary[j+1] ary j+1 j 1 ary[j] ary j ary[j] = value ary[j] ary j value for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(ary[i]);
        } {
            System.out.println(ary[i]);
        } System.out.println(ary[i]) System.out.println System.out System System.out ary[i] ary i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = 10;
        int[] ary = new int[n];
        for (int i = 0; i < n; i++) {
            ary[i] = sc.nextInt();
        }
        
        for (int i = 1; i < n; i++) {
            int value = ary[i];
            for (int j = i-1;; j--) {
                if (j < 0) {
                    break;
                }
                if (ary[j] >= value) {
                    ary[j+1] = value;
                    break;
                }
                ary[j+1] = ary[j];
                ary[j] = value;
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(ary[i]);
        }
    }
}