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();
	
	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz