import java.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] list = new int[3];
		for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		System.out.print(list[0]);
		for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		}
		System.out.println();
	}
} import java.awt.*; awt.* java import java.awt.geom.*; geom.* java.awt import java.io.*; io.* java import java.util.*; util.* java class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] list = new int[3];
		for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		System.out.print(list[0]);
		for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] list = new int[3];
		for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		System.out.print(list[0]);
		for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		}
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		int[] list = new int[3];
		for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		System.out.print(list[0]);
		for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] list = new int[3]; list new int[3] 3 for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			list[i] = sc.nextInt();
		} {
			list[i] = sc.nextInt();
		} list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc Arrays.sort(list) Arrays.sort Arrays list System.out.print(list[0]) System.out.print System.out System System.out list[0] list 0 for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		} int i = 1; int i = 1; i 1 i < 3 i 3 i++ i++ i {
			System.out.print(" " + list[i]);
		} {
			System.out.print(" " + list[i]);
		} System.out.print(" " + list[i]) System.out.print System.out System System.out " " + list[i] " " list[i] list i System.out.println() System.out.println System.out System System.out String[] args args
import java.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] list = new int[3];
		for(int i = 0; i < 3; i++) {
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		System.out.print(list[0]);
		for(int i = 1; i < 3; i++) {
			System.out.print(" " + list[i]);
		}
		System.out.println();
	}
}