#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, ...);
int main(int argc, char const *argv[]) {
  int withdrawl = 0;
  float balance = 0.0;
  scanf("%d", &withdrawl);
  scanf("%f", &balance);
  if (withdrawl % 5 == 0 && balance > (withdrawl + 0.5)) {
    printf("%.2f\n", (balance - (withdrawl + 0.5)));
  } else {
    printf("%.2f\n", balance);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xebc(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xead(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11d4 <main+0xb4>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xe6d(%rip),%xmm2
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    11d4 <main+0xb4>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xe49(%rip),%xmm2
addsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
jmp    11e5 <main+0xc5>
movss  -0x18(%rbp),%xmm0
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xed1(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xec1(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
imul   $0xcccccccd,%eax,%ecx
add    $0x19999999,%ecx
movss  (%rsp),%xmm0
cmp    $0x33333332,%ecx
ja     1192 <main+0x72>
cvtss2sd %xmm0,%xmm1
cvtsi2sd %eax,%xmm2
addsd  0xe7f(%rip),%xmm2
ucomisd %xmm2,%xmm1
jbe    1192 <main+0x72>
subsd  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [6 x i8] c"%.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store float 0.000000e+00, float* %7
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%10 = load i32, i32* %6
%11 = srem i32 %10, 5
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %29
13: ; preds = %2
%14 = load float, float* %7
%15 = fpext float %14 to double
%16 = load i32, i32* %6
%17 = sitofp i32 %16 to double
%18 = fadd double %17, 5.000000e-01
%19 = fcmp ogt double %15, %18
br i1 %19, label %20, label %29
20: ; preds = %13
%21 = load float, float* %7
%22 = fpext float %21 to double
%23 = load i32, i32* %6
%24 = sitofp i32 %23 to double
%25 = fadd double %24, 5.000000e-01
%26 = fsub double %22, %25
%27 = fptrunc double %26 to float
%28 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %27)
br label %32
29: ; preds = %13, %2
%30 = load float, float* %7
%31 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %30)
br label %32
32: ; preds = %29, %20
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [6 x i8] c"%.2f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca float
%5 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%6 = bitcast float* %4 to i8*
store float 0.000000e+00, float* %4
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%9 = load i32, i32* %3
%10 = srem i32 %9, 5
%11 = icmp eq i32 %10, 0
%12 = load float, float* %4
br i1 %11, label %13, label %21
13: ; preds = %2
%14 = fpext float %12 to double
%15 = sitofp i32 %9 to double
%16 = fadd double %15, 5.000000e-01
%17 = fcmp olt double %16, %14
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = fsub double %14, %16
%20 = fptrunc double %19 to float
br label %21
21: ; preds = %13, %2, %18
%22 = phi float [ %20, %18 ], [ %12, %13 ], [ %12, %2 ]
%23 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %22)
ret i32 0
}