#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 *, unsigned long);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main() {
  float ar, b, h1;
  long unsigned h;
  scanf("%f%f", &b, &ar);
  h1 = 2 * ar / b * 10;
  if ((long unsigned)h1 % 10 >= 5)
    h = (long unsigned)h1 / 10 + 1;
  else
    h = (long unsigned)h1 / 10;
  printf("%lu\n", h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
addss  %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  0xea3(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  0xe91(%rip),%xmm2
movaps %xmm0,%xmm1
subss  %xmm2,%xmm1
cvttss2si %xmm1,%rcx
cvttss2si %xmm0,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
cmp    $0x5,%rdx
jb     11e7 <main+0xc7>
movss  -0x10(%rbp),%xmm0
movss  0xe52(%rip),%xmm2
movaps %xmm0,%xmm1
subss  %xmm2,%xmm1
cvttss2si %xmm1,%rcx
cvttss2si %xmm0,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1220 <main+0x100>
movss  -0x10(%rbp),%xmm0
movss  0xe10(%rip),%xmm2
movaps %xmm0,%xmm1
subss  %xmm2,%xmm1
cvttss2si %xmm1,%rcx
cvttss2si %xmm0,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xde2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  (%rsp),%xmm0
mulss  0xeb4(%rip),%xmm0
cvttss2si %xmm0,%rax
mov    %rax,%rdx
subss  0xea8(%rip),%xmm0
sar    $0x3f,%rdx
cvttss2si %xmm0,%rcx
and    %rdx,%rcx
or     %rax,%rcx
movabs $0xcccccccccccccccd,%rdx
cc cc cc
mov    %rcx,%rax
mul    %rdx
shr    $0x3,%rdx
lea    (%rdx,%rdx,1),%rax
lea    (%rax,%rax,4),%rax
sub    %rax,%rcx
cmp    $0x5,%rcx
sbb    $0xffffffffffffffff,%rdx
lea    0xe74(%rip),%rdi
mov    %rdx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [5 x i8] c"%lu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i64
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %3, float* %2)
%7 = load float, float* %2
%8 = fmul float 2.000000e+00, %7
%9 = load float, float* %3
%10 = fdiv float %8, %9
%11 = fmul float %10, 1.000000e+01
store float %11, float* %4
%12 = load float, float* %4
%13 = fptoui float %12 to i64
%14 = urem i64 %13, 10
%15 = icmp uge i64 %14, 5
br i1 %15, label %16, label %21
16: ; preds = %0
%17 = load float, float* %4
%18 = fptoui float %17 to i64
%19 = udiv i64 %18, 10
%20 = add i64 %19, 1
store i64 %20, i64* %5
br label %25
21: ; preds = %0
%22 = load float, float* %4
%23 = fptoui float %22 to i64
%24 = udiv i64 %23, 10
store i64 %24, i64* %5
br label %25
25: ; preds = %21, %16
%26 = load i64, i64* %5
%27 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [5 x i8] c"%lu\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %2, float* %1)
%6 = load float, float* %1
%7 = fmul float %6, 2.000000e+00
%8 = load float, float* %2
%9 = fdiv float %7, %8
%10 = fmul float %9, 1.000000e+01
%11 = fptoui float %10 to i64
%12 = urem i64 %11, 10
%13 = icmp ugt i64 %12, 4
%14 = udiv i64 %11, 10
%15 = zext i1 %13 to i64
%16 = add nuw nsw i64 %14, %15
%17 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %16)
ret i32 0
}