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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    0xebb(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeab(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c3 <main+0xa3>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x14(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2ss %eax,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116e <main+0x4e>
movss  -0x1c(%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    0xed4(%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>
mov    0xc(%rsp),%r8d
test   %r8d,%r8d
jle    1187 <main+0x67>
mov    0x4(%rsp),%ebx
movslq 0x8(%rsp),%rsi
imul   $0xffffffffae147ae1,%rsi,%rdi
mov    %rdi,%rax
shr    $0x3f,%rax
sar    $0x24,%rdi
add    %eax,%edi
cmp    $0x1,%r8d
jne    118c <main+0x6c>
xor    %ecx,%ecx
xorps  %xmm0,%xmm0
jmp    11d3 <main+0xb3>
xorps  %xmm0,%xmm0
jmp    11ee <main+0xce>
mov    %r8d,%r9d
and    $0xfffffffe,%r9d
xor    %ecx,%ecx
xorps  %xmm0,%xmm0
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
cltd
idiv   %ebx
imul   %edi,%eax
add    %esi,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
addss  %xmm0,%xmm1
lea    0x1(%rcx),%eax
cltd
idiv   %ebx
imul   %edi,%eax
add    %esi,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
addss  %xmm1,%xmm0
add    $0x2,%ecx
cmp    %r9d,%ecx
jne    11a0 <main+0x80>
test   $0x1,%r8b
je     11ee <main+0xce>
mov    %ecx,%eax
cltd
idiv   %ebx
imul   %eax,%edi
add    %esi,%edi
xorps  %xmm1,%xmm1
cvtsi2ss %edi,%xmm1
addss  %xmm1,%xmm0
lea    0xe0e(%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 = [6 x i8] c"%.0f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
store i32 0, i32* %1
store i32 0, i32* %6
store float 0.000000e+00, float* %7
%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 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
br label %11
11: ; preds = %15, %0
%12 = load i32, i32* %6
%13 = load i32, i32* %2
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %31
15: ; preds = %11
%16 = load i32, i32* %6
%17 = load i32, i32* %4
%18 = sdiv i32 %16, %17
%19 = load i32, i32* %3
%20 = mul nsw i32 2, %19
%21 = sdiv i32 %20, 100
%22 = mul nsw i32 %18, %21
store i32 %22, i32* %5
%23 = load float, float* %7
%24 = load i32, i32* %3
%25 = load i32, i32* %5
%26 = sub nsw i32 %24, %25
%27 = sitofp i32 %26 to float
%28 = fadd float %23, %27
store float %28, float* %7
%29 = load i32, i32* %6
%30 = add nsw i32 %29, 1
store i32 %30, i32* %6
br label %11
31: ; preds = %11
%32 = load float, float* %7
%33 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %32)
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%.0f\0A\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
br i1 %11, label %12, label %49
12: ; preds = %0
%13 = load i32, i32* %3
%14 = load i32, i32* %2
%15 = sdiv i32 %14, -50
%16 = and i32 %10, 1
%17 = icmp eq i32 %10, 1
br i1 %17, label %38, label %18
18: ; preds = %12
%19 = and i32 %10, -2
br label %20
20: ; preds = %20, %18
%21 = phi float [ 0.000000e+00, %18 ], [ %34, %20 ]
%22 = phi i32 [ 0, %18 ], [ %35, %20 ]
%23 = phi i32 [ 0, %18 ], [ %36, %20 ]
%24 = sdiv i32 %22, %13
%25 = mul i32 %15, %24
%26 = add i32 %25, %14
%27 = sitofp i32 %26 to float
%28 = fadd float %21, %27
%29 = or i32 %22, 1
%30 = sdiv i32 %29, %13
%31 = mul i32 %15, %30
%32 = add i32 %31, %14
%33 = sitofp i32 %32 to float
%34 = fadd float %28, %33
%35 = add nuw nsw i32 %22, 2
%36 = add i32 %23, 2
%37 = icmp eq i32 %36, %19
br i1 %37, label %38, label %20
38: ; preds = %20, %12
%39 = phi float [ undef, %12 ], [ %34, %20 ]
%40 = phi float [ 0.000000e+00, %12 ], [ %34, %20 ]
%41 = phi i32 [ 0, %12 ], [ %35, %20 ]
%42 = icmp eq i32 %16, 0
br i1 %42, label %49, label %43
43: ; preds = %38
%44 = sdiv i32 %41, %13
%45 = mul i32 %15, %44
%46 = add i32 %45, %14
%47 = sitofp i32 %46 to float
%48 = fadd float %40, %47
br label %49
49: ; preds = %43, %38, %0
%50 = phi float [ 0.000000e+00, %0 ], [ %39, %38 ], [ %48, %43 ]
%51 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %50)
ret i32 0
}