import java.util.*;

class Main{

	public static void main(String[] args) {
		Scanner hoge = new Scanner(System.in);

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		System.out.println(a[0]+" "+a[1]+" "+a[2]);

	}



} import java.util.*; util.* java class Main{

	public static void main(String[] args) {
		Scanner hoge = new Scanner(System.in);

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		System.out.println(a[0]+" "+a[1]+" "+a[2]);

	}



} Main public static void main(String[] args) {
		Scanner hoge = new Scanner(System.in);

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		System.out.println(a[0]+" "+a[1]+" "+a[2]);

	} main {
		Scanner hoge = new Scanner(System.in);

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		System.out.println(a[0]+" "+a[1]+" "+a[2]);

	} Scanner hoge = new Scanner(System.in); hoge new Scanner(System.in) int[] a = new int [3]; a new int [3] 3 a[0] = hoge.nextInt() a[0] a 0 hoge.nextInt() hoge.nextInt hoge a[1] = hoge.nextInt() a[1] a 1 hoge.nextInt() hoge.nextInt hoge a[2] = hoge.nextInt() a[2] a 2 hoge.nextInt() hoge.nextInt hoge int h; h if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		} a[0]>a[1]&&a[0]>a[2] a[0]>a[1] a[0] a 0 a[1] a 1 a[0]>a[2] a[0] a 0 a[2] a 2 {
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		} h = a[0] h a[0] a 0 a[0]=a[1] a[0] a 0 a[1] a 1 a[1]=a[2] a[1] a 1 a[2] a 2 a[2]=h a[2] a 2 h if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		} a[1]>a[0]&&a[1]>a[2] a[1]>a[0] a[1] a 1 a[0] a 0 a[1]>a[2] a[1] a 1 a[2] a 2 {
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		} h=a[1] h a[1] a 1 a[1]=a[2] a[1] a 1 a[2] a 2 a[2]=h a[2] a 2 h if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		} a[0]>a[1] a[0] a 0 a[1] a 1 {
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		} h = a[0] h a[0] a 0 a[0]=a[1] a[0] a 0 a[1] a 1 a[1]=h a[1] a 1 h System.out.println(a[0]+" "+a[1]+" "+a[2]) System.out.println System.out System System.out a[0]+" "+a[1]+" "+a[2] " " a[1] a[0]+" "+a[1]+" "+a[2] a[0] a 0 " " a[1] a 1 " " a[2] a 2 String[] args args
import java.util.*;

class Main{

	public static void main(String[] args) {
		Scanner hoge = new Scanner(System.in);

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		System.out.println(a[0]+" "+a[1]+" "+a[2]);

	}



}