import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	}
} Main public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	} main {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	} try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		} {
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int[] ary = new int[3]; ary new int[3] 3 for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			} int i=0; int i=0; i 0 i< ary.length i ary.length ary ary.length i++ i++ i {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			} {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			} ary[i]= sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				} ary[i] < 1 || ary[i] > 10000 ary[i] < 1 ary[i] ary i 1 ary[i] > 10000 ary[i] ary i 10000 {
					System.exit(0);
				} System.exit(0) System.exit System 0 Arrays.sort(ary) Arrays.sort Arrays ary System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2])) System.out.println System.out System System.out String.format("%d %d %d", ary[0],ary[1],ary[2]) String.format String "%d %d %d" ary[0] ary 0 ary[1] ary 1 ary[2] ary 2 String[] args args public class Main {

	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	}
} public class Main {

	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			int[] ary = new int[3];
			for(int i=0; i< ary.length ; i++) {
				ary[i]= sc.nextInt();
				if(ary[i] < 1 || ary[i] > 10000){
					System.exit(0);
				}
			}
			Arrays.sort(ary);
			System.out.println(String.format("%d %d %d", ary[0],ary[1],ary[2]));
		}
	}
}