import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	} main {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int x; x int y; y int z; z if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		} (a < b) && (a < c) (a < b) a b (a < c) a c {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		} x = a x a if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			} b < c b c {
				y = b;
				z = c;
			} y = b y b z = c z c {
				y = c;
				z = b;
			} y = c y c z = b z b if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		} b<c b c {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		} x = b x b if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			} a < c a c {
				y = a;
				z = c;
			} y = a y a z = c z c {
				y = c;
				z = a;
			} y = c y c z = a z a {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		} x = c x c if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			} a < b a b {
				y = a;
				z = b;
			} y = a y a z = b z b {
				y = b;
				z = a;
			} y = b y b z = a z a System.out.println(x + " " + y + " " + z) System.out.println System.out System System.out x + " " + y + " " + z " " y x + " " + y + " " + z x " " y " " z String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int x;
		int y;
		int z;
		
		if ((a < b) && (a < c)) {
			x = a;
			if (b < c) {
				y = b;
				z = c;
			}
			else {
				y = c;
				z = b;
			}
		}
		else if (b<c) {
			x = b;
			if (a < c) {
				y = a;
				z = c;
			}
			else {
				y = c;
				z = a;
			}
		}
		else {
			x = c;
			if (a < b){
				y = a;
				z = b;
			}
			else {
				y = b;
				z = a;
			}
		}
		
		System.out.println(x + " " + y + " " + z);

	}

}