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

import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;

public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int n;
	private int m;
	private int k;
	
	Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	}
	
	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int n;
	private int m;
	private int k;
	
	Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	}
	
	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} Main private StringTokenizer st; st private BufferedReader bf; bf private int n; n private int m; m private int k; k Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	} Main {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	} readData() readData List<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() a.add(n) a.add a n a.add(m) a.add a m a.add(k) a.add a k Collections.sort(a) Collections.sort Collections a String s = ""; s "" for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			s += a.get(i) + " ";
		} {
			s += a.get(i) + " ";
		} s += a.get(i) + " " s a.get(i) + " " a.get(i) a.get a i " " s += a.get(2) s a.get(2) a.get a 2 System.out.println(s) System.out.println System.out System System.out s private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	} readData {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} bf = new BufferedReader(new InputStreamReader(System.in)) bf new BufferedReader(new InputStreamReader(System.in)) st = new StringTokenizer(bf.readLine()) st new StringTokenizer(bf.readLine()) n = nextInt() n nextInt() nextInt m = nextInt() m nextInt() nextInt k = nextInt() k nextInt() nextInt private int nextInt() throws IOException {
		return Integer.parseInt(next());
	} nextInt {
		return Integer.parseInt(next());
	} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	} next {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	} if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(bf.readLine()) st new StringTokenizer(bf.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	} main {
		// TODO Auto-generated method stub
		Main m = new Main();
	} Main m = new Main(); m new Main() String[] args args public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int n;
	private int m;
	private int k;
	
	Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	}
	
	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int n;
	private int m;
	private int k;
	
	Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	}
	
	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;

public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int n;
	private int m;
	private int k;
	
	Main() {
		readData();
		
		List<Integer> a = new ArrayList<Integer>();
		
		a.add(n);
		a.add(m);
		a.add(k);
		Collections.sort(a);
		
		String s = "";
		for (int i = 0;i < 2; i++) {
			s += a.get(i) + " ";
		}
		s += a.get(2);
		
		System.out.println(s);
	}
	
	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			n = nextInt();
			m = nextInt();
			k = nextInt();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

}