import java.util.Scanner;

class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    z = in.nextInt();
       int    w;
       
       if(x>y){
	w = x;
        x = y;
        y = w;
	}

	if(x>z){
	w = x;
	x = z;
	z = w;
	}

	if(y>z){
	w = y;
	y = z;
	z = w;
	}



       System.out.println(x + " " + y + " " + z);
   }
} import java.util.Scanner; Scanner java.util class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    z = in.nextInt();
       int    w;
       
       if(x>y){
	w = x;
        x = y;
        y = w;
	}

	if(x>z){
	w = x;
	x = z;
	z = w;
	}

	if(y>z){
	w = y;
	y = z;
	z = w;
	}



       System.out.println(x + " " + y + " " + z);
   }
} Main public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    z = in.nextInt();
       int    w;
       
       if(x>y){
	w = x;
        x = y;
        y = w;
	}

	if(x>z){
	w = x;
	x = z;
	z = w;
	}

	if(y>z){
	w = y;
	y = z;
	z = w;
	}



       System.out.println(x + " " + y + " " + z);
   } main {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    z = in.nextInt();
       int    w;
       
       if(x>y){
	w = x;
        x = y;
        y = w;
	}

	if(x>z){
	w = x;
	x = z;
	z = w;
	}

	if(y>z){
	w = y;
	y = z;
	z = w;
	}



       System.out.println(x + " " + y + " " + z);
   } Scanner in = new Scanner(System.in); in new Scanner(System.in) int    x = in.nextInt(); x in.nextInt() in.nextInt in int    y = in.nextInt(); y in.nextInt() in.nextInt in int    z = in.nextInt(); z in.nextInt() in.nextInt in int    w; w if(x>y){
	w = x;
        x = y;
        y = w;
	} x>y x y {
	w = x;
        x = y;
        y = w;
	} w = x w x x = y x y y = w y w if(x>z){
	w = x;
	x = z;
	z = w;
	} x>z x z {
	w = x;
	x = z;
	z = w;
	} w = x w x x = z x z z = w z w if(y>z){
	w = y;
	y = z;
	z = w;
	} y>z y z {
	w = y;
	y = z;
	z = w;
	} w = y w y y = z y z z = w z w 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.util.Scanner;

class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    z = in.nextInt();
       int    w;
       
       if(x>y){
	w = x;
        x = y;
        y = w;
	}

	if(x>z){
	w = x;
	x = z;
	z = w;
	}

	if(y>z){
	w = y;
	y = z;
	z = w;
	}



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