import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	}

} Main public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	} main {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a<=b && b<=c a<=b a b b<=c b c {System.out.println(a+" "+b+" "+c);} System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a<=b && b>=c && a>=c a<=b && b>=c && a>=c a<=b a b b>=c b c a>=c a c {System.out.println(c+" "+a+" "+b);} 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(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a<=b && b>=c && a<=c a<=b && b>=c && a<=c a<=b a b b>=c b c a<=c a c {System.out.println(a+" "+c+" "+b);} System.out.println(a+" "+c+" "+b) System.out.println System.out System System.out a+" "+c+" "+b " " c a+" "+c+" "+b a " " c " " b if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a>=b && b>=c a>=b a b b>=c b c {System.out.println(c+" "+b+" "+a);} 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>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a>=b && b<=c && a>=c a>=b && b<=c && a>=c a>=b a b b<=c b c a>=c a c {System.out.println(b+" "+c+" "+a);} System.out.println(b+" "+c+" "+a) System.out.println System.out System System.out b+" "+c+" "+a " " c b+" "+c+" "+a b " " c " " a if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);} a>=b && b<=c && a<=c a>=b && b<=c && a<=c a>=b a b b<=c b c a<=c a c {System.out.println(b+" "+a+" "+c);} System.out.println(b+" "+a+" "+c) System.out.println System.out System System.out b+" "+a+" "+c " " a b+" "+a+" "+c b " " a " " c String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	}

} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
         Scanner sc = new Scanner(System.in);
         int a = sc.nextInt();
         int b = sc.nextInt();
         int c = sc.nextInt();
         
         if(a<=b && b<=c){System.out.println(a+" "+b+" "+c);}
         else if(a<=b && b>=c && a>=c){System.out.println(c+" "+a+" "+b);}
         else if(a<=b && b>=c && a<=c){System.out.println(a+" "+c+" "+b);}
         else if(a>=b && b>=c){System.out.println(c+" "+b+" "+a);}
         else if(a>=b && b<=c && a>=c){System.out.println(b+" "+c+" "+a);}
         else if(a>=b && b<=c && a<=c){System.out.println(b+" "+a+" "+c);}
	}

}