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

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
}

}
 import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
}

} Main private static Scanner scanner; scanner public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
} main {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
} scanner = new Scanner(System.in) scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner while(a < 1 || 10000 < a); a < 1 || 10000 < a a < 1 a 1 10000 < a 10000 a while(b < 1 || 10000 < b); b < 1 || 10000 < b b < 1 b 1 10000 < b 10000 b while(c < 1 || 10000 < c); c < 1 || 10000 < c c < 1 c 1 10000 < c 10000 c int[] list1 = {a,b,c}; list1 {a,b,c} a b c Arrays.sort(list1) Arrays.sort Arrays list1 System.out.println(list1[0]+" "+list1[1]+" "+list1[2]) System.out.println System.out System System.out list1[0]+" "+list1[1]+" "+list1[2] " " list1[1] list1[0]+" "+list1[1]+" "+list1[2] list1[0] list1 0 " " list1[1] list1 1 " " list1[2] list1 2 String[] args args public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
}

} public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
}

} Main

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

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();

		while(a < 1 || 10000 < a);
		while(b < 1 || 10000 < b);
		while(c < 1 || 10000 < c);

		int[] list1 = {a,b,c};
		Arrays.sort(list1);
		System.out.println(list1[0]+" "+list1[1]+" "+list1[2]);
}

}

