import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    }
} Main private static Scanner scan; scan public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    } main {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    } scan = new Scanner(System.in) scan new Scanner(System.in) System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt())) System.out.println System.out System System.out sort(scan.nextInt() , scan.nextInt(), scan.nextInt()) sort scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan String[] args args /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    } sort {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    } List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() list.add(a) list.add list a list.add(b) list.add list b list.add(c) list.add list c Collections.sort(list) Collections.sort Collections list return list.get(0) + " " + list.get(1) + " " + list.get(2); list.get(0) + " " + list.get(1) + " " + list.get(2) " " list.get(1) list.get(0) + " " + list.get(1) + " " + list.get(2) list.get(0) list.get list 0 " " list.get(1) list.get list 1 " " list.get(2) list.get list 2 int a a int b b int c c public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    }
} public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(a);
        list.add(b);
        list.add(c);
        Collections.sort(list);
        return list.get(0) + " " + list.get(1) + " " + list.get(2);
    }
}