import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) sc.useDelimiter("\\s") sc.useDelimiter sc "\\s" int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		} a < b && a < c a < b a b a < c a c {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} System.out.print(a + " ") System.out.print System.out System System.out a + " " a " " if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			} b < c b c {
				System.out.println(b + " " + c);
			} System.out.println(b + " " + c) System.out.println System.out System System.out b + " " + c b + " " + c b " " c {
				System.out.println(c + " " + b);
			} System.out.println(c + " " + b) System.out.println System.out System System.out c + " " + b c + " " + b c " " b if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		} b < a && b < c b < a b a b < c b c {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} System.out.print(b + " ") System.out.print System.out System System.out b + " " b " " if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			} a < c a c {
				System.out.println(a + " " + c);
			} System.out.println(a + " " + c) System.out.println System.out System System.out a + " " + c a + " " + c a " " c {
				System.out.println(c + " " + a);
			} System.out.println(c + " " + a) System.out.println System.out System System.out c + " " + a c + " " + a c " " a {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		} System.out.print(c + " ") System.out.print System.out System System.out c + " " c " " if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			} a < b a b {
				System.out.println(a + " " + b);
			} System.out.println(a + " " + b) System.out.println System.out System System.out a + " " + b a + " " + b a " " b {
				System.out.println(b + " " + a);
			} System.out.println(b + " " + a) System.out.println System.out System System.out b + " " + a b + " " + a b " " a String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter("\\s");
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b && a < c) {
			System.out.print(a + " ");
			if (b < c) {
				System.out.println(b + " " + c);
			} else {
				System.out.println(c + " " + b);
			}
		} else if (b < a && b < c) {
			System.out.print(b + " ");
			if (a < c) {
				System.out.println(a + " " + c);
			} else {
				System.out.println(c + " " + a);
			}
		} else {
			System.out.print(c + " ");
			if (a < b) {
				System.out.println(a + " " + b);
			} else {
				System.out.println(b + " " + a);
			}
		}
	}

}