import java.util.Scanner;

class Main{

	public static void main(String[] args) {

	int[] n;
	n = new int[3];
	
	int min, mid, max;

	Scanner scan = new Scanner(System.in);

	n[0] = scan.nextInt();
	n[1] = scan.nextInt();
	n[2] = scan.nextInt();
	
	mid = n[0]+n[1]+n[2];
	
	min = (n[1] < n[2]) ? n[1] : n[2];
	min = (n[0] < min) ? n[0] : min;
	
	max = (n[1] < n[2]) ? n[2] : n[1];
	max = (n[0] < max) ? max : n[0];
	
	mid = mid - (min + max);

	System.out.println(min + " " + mid + " " + max);

	scan.close();
	
	}
} import java.util.Scanner; Scanner java.util class Main{

	public static void main(String[] args) {

	int[] n;
	n = new int[3];
	
	int min, mid, max;

	Scanner scan = new Scanner(System.in);

	n[0] = scan.nextInt();
	n[1] = scan.nextInt();
	n[2] = scan.nextInt();
	
	mid = n[0]+n[1]+n[2];
	
	min = (n[1] < n[2]) ? n[1] : n[2];
	min = (n[0] < min) ? n[0] : min;
	
	max = (n[1] < n[2]) ? n[2] : n[1];
	max = (n[0] < max) ? max : n[0];
	
	mid = mid - (min + max);

	System.out.println(min + " " + mid + " " + max);

	scan.close();
	
	}
} Main public static void main(String[] args) {

	int[] n;
	n = new int[3];
	
	int min, mid, max;

	Scanner scan = new Scanner(System.in);

	n[0] = scan.nextInt();
	n[1] = scan.nextInt();
	n[2] = scan.nextInt();
	
	mid = n[0]+n[1]+n[2];
	
	min = (n[1] < n[2]) ? n[1] : n[2];
	min = (n[0] < min) ? n[0] : min;
	
	max = (n[1] < n[2]) ? n[2] : n[1];
	max = (n[0] < max) ? max : n[0];
	
	mid = mid - (min + max);

	System.out.println(min + " " + mid + " " + max);

	scan.close();
	
	} main {

	int[] n;
	n = new int[3];
	
	int min, mid, max;

	Scanner scan = new Scanner(System.in);

	n[0] = scan.nextInt();
	n[1] = scan.nextInt();
	n[2] = scan.nextInt();
	
	mid = n[0]+n[1]+n[2];
	
	min = (n[1] < n[2]) ? n[1] : n[2];
	min = (n[0] < min) ? n[0] : min;
	
	max = (n[1] < n[2]) ? n[2] : n[1];
	max = (n[0] < max) ? max : n[0];
	
	mid = mid - (min + max);

	System.out.println(min + " " + mid + " " + max);

	scan.close();
	
	} int[] n; n n = new int[3] n new int[3] 3 int min min mid mid max; max Scanner scan = new Scanner(System.in); scan new Scanner(System.in) n[0] = scan.nextInt() n[0] n 0 scan.nextInt() scan.nextInt scan n[1] = scan.nextInt() n[1] n 1 scan.nextInt() scan.nextInt scan n[2] = scan.nextInt() n[2] n 2 scan.nextInt() scan.nextInt scan mid = n[0]+n[1]+n[2] mid n[0]+n[1]+n[2] n[0]+n[1]+n[2] n[0] n 0 n[1] n 1 n[2] n 2 min = (n[1] < n[2]) ? n[1] : n[2] min (n[1] < n[2]) ? n[1] : n[2] (n[1] < n[2]) n[1] n 1 n[2] n 2 n[1] n 1 n[2] n 2 min = (n[0] < min) ? n[0] : min min (n[0] < min) ? n[0] : min (n[0] < min) n[0] n 0 min n[0] n 0 min max = (n[1] < n[2]) ? n[2] : n[1] max (n[1] < n[2]) ? n[2] : n[1] (n[1] < n[2]) n[1] n 1 n[2] n 2 n[2] n 2 n[1] n 1 max = (n[0] < max) ? max : n[0] max (n[0] < max) ? max : n[0] (n[0] < max) n[0] n 0 max max n[0] n 0 mid = mid - (min + max) mid mid - (min + max) mid (min + max) min max System.out.println(min + " " + mid + " " + max) System.out.println System.out System System.out min + " " + mid + " " + max " " mid min + " " + mid + " " + max min " " mid " " max scan.close() scan.close scan String[] args args
import java.util.Scanner;

class Main{

	public static void main(String[] args) {

	int[] n;
	n = new int[3];
	
	int min, mid, max;

	Scanner scan = new Scanner(System.in);

	n[0] = scan.nextInt();
	n[1] = scan.nextInt();
	n[2] = scan.nextInt();
	
	mid = n[0]+n[1]+n[2];
	
	min = (n[1] < n[2]) ? n[1] : n[2];
	min = (n[0] < min) ? n[0] : min;
	
	max = (n[1] < n[2]) ? n[2] : n[1];
	max = (n[0] < max) ? max : n[0];
	
	mid = mid - (min + max);

	System.out.println(min + " " + mid + " " + max);

	scan.close();
	
	}
}