import java.util.*;

public class Main {

    public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} Main public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    } main {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    } try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } InputMismatchException ex {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } System.out.println("1??????100?????§????????¶??°?????\?????????????????????") System.out.println System.out System System.out "1??????100?????§????????¶??°?????\?????????????????????" {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x[] = new int[3]; x new int[3] 3 int i = 0; i 0 for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            } int k = 0; int k = 0; k 0 k < 3 k 3 k++ k++ k {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            } {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            } int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                } 0 < y && y < 10001 0 < y 0 y y < 10001 y 10001 {
                    x[i] = y;
                    i++;
                } x[i] = y x[i] x i y i++ i {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                } System.out.println("1??????10000?????§???????????§???") System.out.println System.out System System.out "1??????10000?????§???????????§???" break; if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            } x.length == 3 x.length x x.length 3 {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            } int j; j for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                } i = x.length - 1; i = x.length - 1 i x.length - 1 x.length x x.length 1 0 <= i 0 i i-- i-- i {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                } {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                } for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    } j = i; j = i j i j < x.length - 1 j x.length - 1 x.length x x.length 1 j++ j++ j {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    } {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    } if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        } x[j] > x[j + 1] x[j] x j x[j + 1] x j + 1 j 1 {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        } int y = x[j]; y x[j] x j x[j] = x[j + 1] x[j] x j x[j + 1] x j + 1 j 1 x[j + 1] = y x[j + 1] x j + 1 j 1 y for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                } i = 0; i = 0 i 0 i < x.length - 1 i x.length - 1 x.length x x.length 1 i++ i++ i {
                    System.out.print(x[i]+ " ");
                } {
                    System.out.print(x[i]+ " ");
                } System.out.print(x[i]+ " ") System.out.print System.out System System.out x[i]+ " " x[i] x i " " System.out.println(x[x.length - 1]) System.out.println System.out System System.out x[x.length - 1] x x.length - 1 x.length x x.length 1 String arg[] arg public class Main {

    public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} public class Main {

    public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String arg[]) {
        try {
            Scanner scan = new Scanner(System.in);
            int x[] = new int[3];
            int i = 0;
            for (int k = 0; k < 3; k++) {
                int y = scan.nextInt();
                if (0 < y && y < 10001) {
                    x[i] = y;
                    i++;
                } else {
                    System.out.println("1??????10000?????§???????????§???");
                    break;
                }
            }
            if (x.length == 3) {
                int j;
                for (i = x.length - 1; 0 <= i; i--) {
                    for (j = i; j < x.length - 1; j++) {
                        if (x[j] > x[j + 1]) {
                            int y = x[j];
                            x[j] = x[j + 1];
                            x[j + 1] = y;
                        }
                    }
                }
                for (i = 0; i < x.length - 1; i++) {
                    System.out.print(x[i]+ " ");
                }
                System.out.println(x[x.length - 1]);
            }
        } catch (InputMismatchException ex) {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
}