import java.util.Scanner;

public class Main{
	static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	}
} Main static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	} 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	} 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		} a>b a b {
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			} b>c b c System.out.println(c+" "+b+" "+a) System.out.println System.out System System.out c+" "+b+" "+a " " b c+" "+b+" "+a c " " b " " a {
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			} if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c); a>c a c System.out.println(b+" "+c+" "+a) System.out.println System.out System System.out b+" "+c+" "+a " " c b+" "+c+" "+a b " " c " " a System.out.println(b+" "+a+" "+c) System.out.println System.out System System.out b+" "+a+" "+c " " a b+" "+a+" "+c b " " a " " c {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		} if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			} a>c a c System.out.println(c+" "+a+" "+b) System.out.println System.out System System.out c+" "+a+" "+b " " a c+" "+a+" "+b c " " a " " b {
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			} if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c); b>c b c System.out.println(a+" "+c+" "+b) System.out.println System.out System System.out a+" "+c+" "+b " " c a+" "+c+" "+b a " " c " " b System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c String args[] args public class Main{
	static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	}
} public class Main{
	static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main{
	static public 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){
			if(b>c)
				System.out.println(c+" "+b+" "+a);
			else{
				if(a>c)
					System.out.println(b+" "+c+" "+a);
				else
					System.out.println(b+" "+a+" "+c);
			}
		} else {
			if(a>c)
				System.out.println(c+" "+a+" "+b);
			else{
				if(b>c)
					System.out.println(a+" "+c+" "+b);
				else
					System.out.println(a+" "+b+" "+c);
			}
		}
	}
}