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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xeb1(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xea2(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe90(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1187 <main+0x67>
movss  -0x20(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
mov    $0x64,%eax
sub    -0x14(%rbp),%eax
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm1
movss  0xe57(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
ja     1187 <main+0x67>
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1182 <main+0x62>
movss  -0x20(%rbp),%xmm0
lea    0xe04(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xed6(%rip),%rdi
xor    %ebx,%ebx
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xec4(%rip),%r14
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
xorps  %xmm0,%xmm0
mov    0x14(%rsp),%eax
movss  0xe84(%rip),%xmm3
xor    %ecx,%ecx
xchg   %ax,%ax
mov    $0x64,%edx
sub    %ecx,%edx
xorps  %xmm4,%xmm4
cvtsi2ss %edx,%xmm4
mulss  %xmm1,%xmm4
divss  %xmm3,%xmm4
mov    $0x1,%edx
nopl   0x0(%rax,%rax,1)
addss  %xmm4,%xmm0
xorps  %xmm5,%xmm5
cvtsi2ss %edx,%xmm5
add    $0x1,%ebx
add    $0x1,%edx
ucomiss %xmm5,%xmm2
ja     11a0 <main+0x80>
add    $0x2,%ecx
lea    0x1(%rbx),%edx
cmp    %eax,%ebx
mov    %edx,%ebx
jl     1180 <main+0x60>
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

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

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