import java.util.Scanner;

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

    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}
    	if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	}
    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}

    	System.out.printf("%d %d %d\n", a,b,c);

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

    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}
    	if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	}
    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}

    	System.out.printf("%d %d %d\n", a,b,c);

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

    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}
    	if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	}
    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}

    	System.out.printf("%d %d %d\n", a,b,c);

    } main {
    	Scanner scan = new Scanner(System.in);
    	int a = scan.nextInt();
    	int b = scan.nextInt();
    	int c = scan.nextInt();

    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}
    	if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	}
    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}

    	System.out.printf("%d %d %d\n", a,b,c);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	} a > b a b {
    		int buf = b;
    		b = a;
    		a = buf;
    	} int buf = b; buf b b = a b a a = buf a buf if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	} b > c b c {
    		int buf = c;
    		c = b;
    		b = buf;
    	} int buf = c; buf c c = b c b b = buf b buf if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	} a > b a b {
    		int buf = b;
    		b = a;
    		a = buf;
    	} int buf = b; buf b b = a b a a = buf a buf System.out.printf("%d %d %d\n", a,b,c) System.out.printf System.out System System.out "%d %d %d\n" a b c String[] args args
import java.util.Scanner;

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

    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}
    	if(b > c){
    		int buf = c;
    		c = b;
    		b = buf;
    	}
    	if(a > b){
    		int buf = b;
    		b = a;
    		a = buf;
    	}

    	System.out.printf("%d %d %d\n", a,b,c);

    }
}