#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 *, float *);
int main() {
  float n, m, k, i = 0, j = 0, q = 0, sum = 0;
  scanf("%f", &n);
  scanf("%f", &m);
  scanf("%f", &k);
  while (i <= n) {
    while (j < k) {
      sum = sum + m * (100 - q) / 100;
      j++;
    }
    q = q + 2;
    i = i + j + 1;
    j = 0;
  }
  printf("%.0f", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xeb6(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea6(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe96(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     122b <main+0x10b>
jmp    1197 <main+0x77>
movss  -0x18(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11f1 <main+0xd1>
movss  -0x20(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  0xe4c(%rip),%xmm2
subss  -0x1c(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xe3b(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe1e(%rip),%xmm0
addss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    1197 <main+0x77>
movss  0xe0b(%rip),%xmm0
addss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x14(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
movss  0xdeb(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    117f <main+0x5f>
movss  -0x20(%rbp),%xmm0
lea    0xdd8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee0(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0xc(%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jae    1175 <main+0x55>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
movss  0x4(%rsp),%xmm2
xorps  %xmm8,%xmm8
movss  0x8(%rsp),%xmm10
movss  0xe71(%rip),%xmm9
movss  0xe6d(%rip),%xmm6
movss  0xe68(%rip),%xmm11
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
xorps  %xmm5,%xmm5
jmp    11c5 <main+0xa5>
nopl   0x0(%rax,%rax,1)
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm5
addss  %xmm11,%xmm3
addss  %xmm6,%xmm5
ucomiss %xmm5,%xmm1
jb     1161 <main+0x41>
ucomiss %xmm8,%xmm2
jbe    11b0 <main+0x90>
movaps %xmm9,%xmm7
subss  %xmm3,%xmm7
mulss  %xmm10,%xmm7
divss  %xmm9,%xmm7
xorps  %xmm4,%xmm4
addss  %xmm7,%xmm0
addss  %xmm6,%xmm4
ucomiss %xmm4,%xmm2
ja     11e0 <main+0xc0>
jmp    11b3 <main+0x93>

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [5 x i8] c"%.0f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %8
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
br label %12
12: ; preds = %31, %0
%13 = load float, float* %5
%14 = load float, float* %2
%15 = fcmp ole float %13, %14
br i1 %15, label %16, label %38
16: ; preds = %12
br label %17
17: ; preds = %21, %16
%18 = load float, float* %6
%19 = load float, float* %4
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load float, float* %8
%23 = load float, float* %3
%24 = load float, float* %7
%25 = fsub float 1.000000e+02, %24
%26 = fmul float %23, %25
%27 = fdiv float %26, 1.000000e+02
%28 = fadd float %22, %27
store float %28, float* %8
%29 = load float, float* %6
%30 = fadd float %29, 1.000000e+00
store float %30, float* %6
br label %17
31: ; preds = %17
%32 = load float, float* %7
%33 = fadd float %32, 2.000000e+00
store float %33, float* %7
%34 = load float, float* %5
%35 = load float, float* %6
%36 = fadd float %34, %35
%37 = fadd float %36, 1.000000e+00
store float %37, float* %5
store float 0.000000e+00, float* %6
br label %12
38: ; preds = %12
%39 = load float, float* %8
%40 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %39)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [5 x i8] c"%.0f\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%10 = load float, float* %1
%11 = fcmp ult float %10, 0.000000e+00
br i1 %11, label %37, label %12
12: ; preds = %0
%13 = load float, float* %3
%14 = fcmp ogt float %13, 0.000000e+00
%15 = load float, float* %2
br label %16
16: ; preds = %12, %30
%17 = phi float [ 0.000000e+00, %12 ], [ %32, %30 ]
%18 = phi float [ 0.000000e+00, %12 ], [ %33, %30 ]
%19 = phi float [ 0.000000e+00, %12 ], [ %35, %30 ]
br i1 %14, label %20, label %30
20: ; preds = %16
%21 = fsub float 1.000000e+02, %18
%22 = fmul float %21, %15
%23 = fdiv float %22, 1.000000e+02
br label %24
24: ; preds = %20, %24
%25 = phi float [ %17, %20 ], [ %27, %24 ]
%26 = phi float [ 0.000000e+00, %20 ], [ %28, %24 ]
%27 = fadd float %25, %23
%28 = fadd float %26, 1.000000e+00
%29 = fcmp olt float %28, %13
br i1 %29, label %24, label %30
30: ; preds = %24, %16
%31 = phi float [ 0.000000e+00, %16 ], [ %28, %24 ]
%32 = phi float [ %17, %16 ], [ %27, %24 ]
%33 = fadd float %18, 2.000000e+00
%34 = fadd float %19, %31
%35 = fadd float %34, 1.000000e+00
%36 = fcmp ugt float %35, %10
br i1 %36, label %37, label %16
37: ; preds = %30, %0
%38 = phi float [ 0.000000e+00, %0 ], [ %32, %30 ]
%39 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %38)
ret i32 0
}