import java.io.*;
 
class Main{
    public static void main(String[] args) throws IOException{
     
        int x,y,z,temp;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str[] = br.readLine().split(" ");
        x = Integer.parseInt(str[0]);
        y = Integer.parseInt(str[1]);
	z = Integer.parseInt(str[2]);

	for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	}

	System.out.println(x + " " + y + " " + z);
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
     
        int x,y,z,temp;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str[] = br.readLine().split(" ");
        x = Integer.parseInt(str[0]);
        y = Integer.parseInt(str[1]);
	z = Integer.parseInt(str[2]);

	for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	}

	System.out.println(x + " " + y + " " + z);
    }
} Main public static void main(String[] args) throws IOException{
     
        int x,y,z,temp;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str[] = br.readLine().split(" ");
        x = Integer.parseInt(str[0]);
        y = Integer.parseInt(str[1]);
	z = Integer.parseInt(str[2]);

	for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	}

	System.out.println(x + " " + y + " " + z);
    } main {
     
        int x,y,z,temp;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str[] = br.readLine().split(" ");
        x = Integer.parseInt(str[0]);
        y = Integer.parseInt(str[1]);
	z = Integer.parseInt(str[2]);

	for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	}

	System.out.println(x + " " + y + " " + z);
    } int x x y y z z temp; temp BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " x = Integer.parseInt(str[0]) x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 y = Integer.parseInt(str[1]) y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 z = Integer.parseInt(str[2]) z Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	} {
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	} if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		} z<y z y {
			temp=y;
			y=z;
			z=temp;
		} temp=y temp y y=z y z z=temp z temp if(y<x){
			temp=x;
			x=y;
			y=temp;
		} y<x y x {
			temp=x;
			x=y;
			y=temp;
		} temp=x temp x x=y x y y=temp y temp 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
import java.io.*;
 
class Main{
    public static void main(String[] args) throws IOException{
     
        int x,y,z,temp;
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str[] = br.readLine().split(" ");
        x = Integer.parseInt(str[0]);
        y = Integer.parseInt(str[1]);
	z = Integer.parseInt(str[2]);

	for(int i=0; i<3; i++){
		if(z<y){
			temp=y;
			y=z;
			z=temp;
		}else if(y<x){
			temp=x;
			x=y;
			y=temp;
		}
	}

	System.out.println(x + " " + y + " " + z);
    }
}