import std.stdio,std.string,std.conv,std.algorithm;
void main(){
	auto arr = readln().chomp().split();
	int[] arr2;
	arr2 = [to!int(arr[0]),to!int(arr[1]),to!int(arr[2]),to!int(arr[3]),to!int(arr[4])];
	sort!("a > b")(arr2);
	writeln( arr2[0]," ",arr2[1]," ",arr2[2]," ",arr2[3]," ",arr2[4] );
}