int main() {
  int i, j;
  double v[4];
  for (scanf("%lf %lf %lf", v, v + 1, v + 2), i = 0;
       i < 2 || 0 * printf("%.0lf %.0lf %.0lf\n", ceil(v[0]), floor(v[2]),
                           floor(v[1] + 0.5));
       i++)
    for (j = i + 1; j < 3; j++)
      if (v[i] < v[j])
        v[3] = v[i], v[i] = v[j], v[j] = v[3];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rsi
lea    -0x30(%rbp),%rdx
add    $0x8,%rdx
lea    -0x30(%rbp),%rcx
add    $0x10,%rcx
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    $0x1,%al
cmpl   $0x2,-0x8(%rbp)
mov    %al,-0x31(%rbp)
jl     11de <main+0x9e>
movsd  -0x30(%rbp),%xmm0
call   1030 <ceil@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1060 <floor@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xe53(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
call   1060 <floor@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x40(%rbp),%xmm0
lea    0xe49(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
imul   $0x0,%eax,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    11ee <main+0xae>
jmp    1277 <main+0x137>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    1264 <main+0x124>
movslq -0x8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm1
movslq -0xc(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1251 <main+0x111>
movslq -0x8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x18(%rbp)
movslq -0xc(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x30(%rbp,%rax,8)
movsd  -0x18(%rbp),%xmm0
movslq -0xc(%rbp),%rax
movsd  %xmm0,-0x30(%rbp,%rax,8)
jmp    1256 <main+0x116>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f7 <main+0xb7>
jmp    1269 <main+0x129>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1178 <main+0x38>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0xeb3(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1187 <main+0x47>
movsd  %xmm1,0x28(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  %xmm1,0x18(%rsp)
jmp    118b <main+0x4b>
movapd %xmm1,%xmm0
movsd  0x20(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    11a9 <main+0x69>
movsd  %xmm0,0x28(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11db <main+0x9b>
movsd  %xmm1,0x28(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x38(%rsp)
jmp    11e7 <main+0xa7>
movsd  %xmm1,0x38(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <ceil@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <floor@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x38(%rsp),%xmm0
addsd  0xde9(%rip),%xmm0
call   1060 <floor@plt>
movapd %xmm0,%xmm2
lea    0xded(%rip),%rdi
movsd  0x40(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [19 x i8] c"%.0lf %.0lf %.0lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [4 x double]
store i32 0, i32* %1
%5 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%6 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%7 = getelementptr inbounds double, double* %6, i64 1
%8 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%9 = getelementptr inbounds double, double* %8, i64 2
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %5, double* %7, double* %9)
store i32 0, i32* %2
br label %11
11: ; preds = %69, %0
%12 = load i32, i32* %2
%13 = icmp slt i32 %12, 2
br i1 %13, label %28, label %14
14: ; preds = %11
%15 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%16 = load double, double* %15
%17 = call double @llvm.ceil.f64(double %16)
%18 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 2
%19 = load double, double* %18
%20 = call double @llvm.floor.f64(double %19)
%21 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 1
%22 = load double, double* %21
%23 = fadd double %22, 5.000000e-01
%24 = call double @llvm.floor.f64(double %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %17, double %20, double %24)
%26 = mul nsw i32 0, %25
%27 = icmp ne i32 %26, 0
br label %28
28: ; preds = %14, %11
%29 = phi i1 [ true, %11 ], [ %27, %14 ]
br i1 %29, label %30, label %72
30: ; preds = %28
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %33
33: ; preds = %65, %30
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %68
36: ; preds = %33
%37 = load i32, i32* %2
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %38
%40 = load double, double* %39
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %42
%44 = load double, double* %43
%45 = fcmp olt double %40, %44
br i1 %45, label %46, label %64
46: ; preds = %36
%47 = load i32, i32* %2
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %48
%50 = load double, double* %49
%51 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 3
store double %50, double* %51
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %53
%55 = load double, double* %54
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %57
store double %55, double* %58
%59 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 3
%60 = load double, double* %59
%61 = load i32, i32* %3
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 %62
store double %60, double* %63
br label %64
64: ; preds = %46, %36
br label %65
65: ; preds = %64
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
store i32 %67, i32* %3
br label %33
68: ; preds = %33
br label %69
69: ; preds = %68
%70 = load i32, i32* %2
%71 = add nsw i32 %70, 1
store i32 %71, i32* %2
br label %11
72: ; preds = %28
%73 = load i32, i32* %1
ret i32 %73
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [19 x i8] c"%.0lf %.0lf %.0lf\0A\00"
define i32 @main() {
%1 = alloca [4 x double]
%2 = bitcast [4 x double]* %1 to i8*
%3 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%4 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 1
%5 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 2
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %3, double* %4, double* %5)
%7 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 3
%8 = load double, double* %3
%9 = load double, double* %4
%10 = fcmp olt double %8, %9
br i1 %10, label %25, label %26
11: ; preds = %30, %26
%12 = load double, double* %4
%13 = load double, double* %5
%14 = fcmp olt double %12, %13
br i1 %14, label %15, label %16
15: ; preds = %11
store double %12, double* %7
store double %13, double* %4
store double %12, double* %5
br label %16
16: ; preds = %11, %15
%17 = phi double [ %13, %15 ], [ %12, %11 ]
%18 = phi double [ %12, %15 ], [ %13, %11 ]
%19 = load double, double* %3
%20 = call double @llvm.ceil.f64(double %19)
%21 = call double @llvm.floor.f64(double %18)
%22 = fadd double %17, 5.000000e-01
%23 = call double @llvm.floor.f64(double %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %20, double %21, double %23)
ret i32 0
25: ; preds = %0
store double %8, double* %7
store double %9, double* %3
store double %8, double* %4
br label %26
26: ; preds = %0, %25
%27 = phi double [ %8, %0 ], [ %9, %25 ]
%28 = load double, double* %5
%29 = fcmp olt double %27, %28
br i1 %29, label %30, label %11
30: ; preds = %26
store double %27, double* %7
store double %28, double* %3
store double %27, double* %5
br label %11
}