import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int c = input.nextInt();
int min = Math.min(Math.min(a,b),c);
int max = Math.max(Math.max(a,b),c);
System.out.println(min + " " + (a+b+c-min-max) + " " + max);
}
}