import java.util.Scanner;

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

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

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

	if(a < b && a < c){
	    if(b < c) System.out.println(a+" "+b+" "+c);
	    else System.out.println(a+" "+c+" "+b);
	}
	else if(b < a && b < c){
	    if(a < c) System.out.println(b+" "+a+" "+c);
	    else System.out.println(b+" "+c+" "+a);
	}
	else{
	    if(a < b) System.out.println(c+" "+a+" "+b);
	    else System.out.println(c+" "+b+" "+a);
	}
    } main {
	Scanner s = new Scanner(System.in);
	int a = s.nextInt();
	int b = s.nextInt();
	int c = s.nextInt();

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

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

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

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

	if(a < b && a < c){
	    if(b < c) System.out.println(a+" "+b+" "+c);
	    else System.out.println(a+" "+c+" "+b);
	}
	else if(b < a && b < c){
	    if(a < c) System.out.println(b+" "+a+" "+c);
	    else System.out.println(b+" "+c+" "+a);
	}
	else{
	    if(a < b) System.out.println(c+" "+a+" "+b);
	    else System.out.println(c+" "+b+" "+a);
	}
    }
}

