import java.util.Scanner;

public class Main {
	public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	}
} Main public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	} main {
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	} int big=0 big 0 min=0 min 0 half=0; half 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int c = in.nextInt(); c in.nextInt() in.nextInt in if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		} a>b && a>c a>b a b a>c a c {
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		} big = a big a if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			} b>c b c {
				half = b;
				min = c;
			} half = b half b min = c min c {
				half = c;
				min = b;
			} half = c half c min = b min b if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		} a<b && b>c a<b a b b>c b c {
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		} big = b big b if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			} a>c a c {
				half = a;
				min = c;
			} half = a half a min = c min c {
				half = c;
				min = a;
			} half = c half c min = a min a if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		} a<c && c>b a<c a c c>b c b {	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		} big = c big c if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			} a>b a b {
				half = a;
				min = b;
			} half = a half a min = b min b {
				half = b;
				min = a;
			} half = b half b min = a min a System.out.println(min+" "+half+" "+big) System.out.println System.out System System.out min+" "+half+" "+big " " half min+" "+half+" "+big min " " half " " big String[] args args public class Main {
	public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	}
} public class Main {
	public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String[] args){
		
		int big=0, min=0, half=0;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		if(a>b && a>c){
			big = a;
			if(b>c){
				half = b;
				min = c;
			}else{
				half = c;
				min = b;
			}
		}
		if(a<b && b>c){
			big = b;
			if(a>c){
				half = a;
				min = c;
			}else{
				half = c;
				min = a;
			}
		}
		if(a<c && c>b){	
			big = c;
			if(a>b){
				half = a;
				min = b;
			}else{
				half = b;
				min = a;
			}
		}
		System.out.println(min+" "+half+" "+big);
	}
}