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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xec9(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xec5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea5(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    11cb <main+0xab>
movss  -0x18(%rbp),%xmm1
cvtsi2ssl -0x10(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm2
movss  -0x14(%rbp),%xmm3
movss  0xe6e(%rip),%xmm4
divss  %xmm4,%xmm3
mulss  %xmm3,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
movss  -0x14(%rbp),%xmm0
movss  0xe47(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    116c <main+0x4c>
movss  -0x18(%rbp),%xmm0
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xedc(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    0x8(%rsp),%ecx
cvtsi2ss %ecx,%xmm1
movss  0xe99(%rip),%xmm2
cvtsi2ssl 0xc(%rsp),%xmm3
movss  0xe8f(%rip),%xmm4
movaps %xmm2,%xmm5
nopl   0x0(%rax,%rax,1)
movaps %xmm5,%xmm6
divss  %xmm2,%xmm6
mulss  %xmm3,%xmm6
mulss  %xmm1,%xmm6
addss  %xmm6,%xmm0
sub    %ecx,%eax
addss  %xmm4,%xmm5
test   %eax,%eax
jg     1180 <main+0x60>
mov    %eax,0x4(%rsp)
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

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