import java.util.Scanner;

public class Main{
	public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	}
} Main public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	} main {

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	} Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int ary[]= new int[3]; ary new int[3] 3 for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		} int i=0; int i=0; i 0 i<=2 i 2 ++i ++i i {
			ary[i]= sc.nextInt();
		} {
			ary[i]= sc.nextInt();
		} ary[i]= sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc int a a b; b for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		} int i =1; int i =1; i 1 i>=0 i 0 --i --i i {
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		} {
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		} if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		} ary[i+1]<ary[i] ary[i+1] ary i+1 i 1 ary[i] ary i {
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		} a=ary[i] a ary[i] ary i b=ary[i+1] b ary[i+1] ary i+1 i 1 ary[i]=b ary[i] ary i b ary[i+1]=a ary[i+1] ary i+1 i 1 a if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		} ary[2]<ary[1] ary[2] ary 2 ary[1] ary 1 {
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		} a=ary[1] a ary[1] ary 1 b=ary[2] b ary[2] ary 2 ary[1]=b ary[1] ary 1 b ary[2]=a ary[2] ary 2 a System.out.println(ary[0]+" "+ary[1]+" "+ary[2]) System.out.println System.out System System.out ary[0]+" "+ary[1]+" "+ary[2] " " ary[1] ary[0]+" "+ary[1]+" "+ary[2] ary[0] ary 0 " " ary[1] ary 1 " " ary[2] ary 2 String args[] args public class Main{
	public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	}
} public class Main{
	public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]){

		Scanner sc = new Scanner (System.in);
		int ary[]= new int[3];
		for (int i=0;i<=2;++i){
			ary[i]= sc.nextInt();
		}
		int a,b;

		for ( int i =1;i>=0;--i){
		if (ary[i+1]<ary[i]){
			a=ary[i];
			b=ary[i+1];
			ary[i]=b;
			ary[i+1]=a;
		}
		}
		if (ary[2]<ary[1]){
			a=ary[1];
			b=ary[2];
			ary[1]=b;
			ary[2]=a;
		}
		System.out.println(ary[0]+" "+ary[1]+" "+ary[2]);
	}
}
