import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public int n = 0;
	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		String[] s = str.split(" ");
		int[] n = new int[s.length];
		for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		}
		if(n.length > 3){
			System.exit(0);
		}
		int a = n[0];
		int b = n[1];
		int c = n[2];
		Main main = new Main();
		main.calculate(a, b, c);
	}
	public void calculate(int a, int b, int c){
		if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		}
		if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public int n = 0;
	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		String[] s = str.split(" ");
		int[] n = new int[s.length];
		for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		}
		if(n.length > 3){
			System.exit(0);
		}
		int a = n[0];
		int b = n[1];
		int c = n[2];
		Main main = new Main();
		main.calculate(a, b, c);
	}
	public void calculate(int a, int b, int c){
		if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		}
		if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		}
	}
} Main public int n = 0; n 0 public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		String[] s = str.split(" ");
		int[] n = new int[s.length];
		for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		}
		if(n.length > 3){
			System.exit(0);
		}
		int a = n[0];
		int b = n[1];
		int c = n[2];
		Main main = new Main();
		main.calculate(a, b, c);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		String[] s = str.split(" ");
		int[] n = new int[s.length];
		for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		}
		if(n.length > 3){
			System.exit(0);
		}
		int a = n[0];
		int b = n[1];
		int c = n[2];
		Main main = new Main();
		main.calculate(a, b, c);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] s = str.split(" "); s str.split(" ") str.split str " " int[] n = new int[s.length]; n new int[s.length] s.length s s.length for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		} int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
			n[i] = Integer.parseInt(s[i]);
		} {
			n[i] = Integer.parseInt(s[i]);
		} n[i] = Integer.parseInt(s[i]) n[i] n i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i if(n.length > 3){
			System.exit(0);
		} n.length > 3 n.length n n.length 3 {
			System.exit(0);
		} System.exit(0) System.exit System 0 int a = n[0]; a n[0] n 0 int b = n[1]; b n[1] n 1 int c = n[2]; c n[2] n 2 Main main = new Main(); main new Main() main.calculate(a, b, c) main.calculate main a b c String[] args args public void calculate(int a, int b, int c){
		if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		}
		if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		}
	} calculate {
		if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		}
		if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		}
	} if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		} a <= b && b <= c a <= b a b b <= c b c {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		} 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.exit(0) System.exit System 0 if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		} a > b a b {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} n = a n a a = b a b b = n b n calculate(a, b, c) calculate a b c if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		} b > c b c {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		} n = b n b b = c b c c = n c n calculate(a, b, c) calculate a b c int a a int b b int c c
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public int n = 0;
	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		String[] s = str.split(" ");
		int[] n = new int[s.length];
		for (int i = 0; i < s.length; i++) {
			n[i] = Integer.parseInt(s[i]);
		}
		if(n.length > 3){
			System.exit(0);
		}
		int a = n[0];
		int b = n[1];
		int c = n[2];
		Main main = new Main();
		main.calculate(a, b, c);
	}
	public void calculate(int a, int b, int c){
		if(a <= b && b <= c ) {
			System.out.println(a + " " + b + " " + c);
			System.exit(0);
		}
		if(a > b) {
			n = a;
			a = b;
			b = n;
			calculate(a, b, c);
		} else if(b > c) {
			n = b;
			b = c;
			c = n;
			calculate(a, b, c);
		}
	}
}