#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 *, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int user, price;
  scanf("%d %d", &user, &price);
  printf("%.2f", (user >= 20) ? price * user * 80.0 / 100
                              : ((user / 2) * 2) * price * 90.0 / 100 +
                                    (user % 2) * price);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x14,-0x8(%rbp)
jl     117a <main+0x5a>
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xeb0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe94(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    11c4 <main+0xa4>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
shl    $0x1,%eax
imul   -0xc(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe70(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe5c(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
imul   -0xc(%rbp),%edx
cvtsi2sd %edx,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
cvttsd2si %xmm0,%esi
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x14,%eax
jl     1158 <main+0x38>
imul   (%rsp),%eax
cvtsi2sd %eax,%xmm0
mulsd  0xec2(%rip),%xmm0
divsd  0xeb2(%rip),%xmm0
jmp    118f <main+0x6f>
mov    (%rsp),%ecx
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
mov    %edx,%esi
shr    %esi
imul   %ecx,%esi
add    %esi,%esi
cvtsi2sd %esi,%xmm1
mulsd  0xe89(%rip),%xmm1
divsd  0xe89(%rip),%xmm1
and    $0xfffffffe,%edx
sub    %edx,%eax
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%5 = load i32, i32* %2
%6 = icmp sge i32 %5, 20
br i1 %6, label %7, label %14
7: ; preds = %0
%8 = load i32, i32* %3
%9 = load i32, i32* %2
%10 = mul nsw i32 %8, %9
%11 = sitofp i32 %10 to double
%12 = fmul double %11, 8.000000e+01
%13 = fdiv double %12, 1.000000e+02
br label %29
14: ; preds = %0
%15 = load i32, i32* %2
%16 = sdiv i32 %15, 2
%17 = mul nsw i32 %16, 2
%18 = load i32, i32* %3
%19 = mul nsw i32 %17, %18
%20 = sitofp i32 %19 to double
%21 = fmul double %20, 9.000000e+01
%22 = fdiv double %21, 1.000000e+02
%23 = load i32, i32* %2
%24 = srem i32 %23, 2
%25 = load i32, i32* %3
%26 = mul nsw i32 %24, %25
%27 = sitofp i32 %26 to double
%28 = fadd double %22, %27
br label %29
29: ; preds = %14, %7
%30 = phi double [ %13, %7 ], [ %28, %14 ]
%31 = fptosi double %30 to i32
%32 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 19
br i1 %7, label %8, label %14
8: ; preds = %0
%9 = load i32, i32* %2
%10 = mul nsw i32 %9, %6
%11 = sitofp i32 %10 to double
%12 = fmul double %11, 8.000000e+01
%13 = fdiv double %12, 1.000000e+02
br label %26
14: ; preds = %0
%15 = sdiv i32 %6, 2
%16 = shl nsw i32 %15, 1
%17 = load i32, i32* %2
%18 = mul nsw i32 %16, %17
%19 = sitofp i32 %18 to double
%20 = fmul double %19, 9.000000e+01
%21 = fdiv double %20, 1.000000e+02
%22 = srem i32 %6, 2
%23 = mul nsw i32 %17, %22
%24 = sitofp i32 %23 to double
%25 = fadd double %21, %24
br label %26
26: ; preds = %14, %8
%27 = phi double [ %13, %8 ], [ %25, %14 ]
%28 = fptosi double %27 to i32
%29 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %28)
ret i32 0
}