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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%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    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c9 <main+0xa9>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
movss  -0x24(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
addss  %xmm1,%xmm0
cvtsi2ssl -0x20(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116e <main+0x4e>
movss  -0x24(%rbp),%xmm0
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%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),%esi
test   %esi,%esi
jle    11a8 <main+0x88>
mov    0x8(%rsp),%edi
cvtsi2ss %edi,%xmm1
mov    0x4(%rsp),%ebx
xor    %ecx,%ecx
xorps  %xmm0,%xmm0
nopl   0x0(%rax)
mov    %ecx,%eax
cltd
idiv   %ebx
imul   %edi,%eax
add    %eax,%eax
cltq
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rax
add    %edx,%eax
xorps  %xmm2,%xmm2
cvtsi2ss %eax,%xmm2
addss  %xmm1,%xmm0
subss  %xmm2,%xmm0
add    $0x1,%ecx
cmp    %ecx,%esi
jne    1170 <main+0x50>
jmp    11ab <main+0x8b>
xorps  %xmm0,%xmm0
lea    0xe51(%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"%.f\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 i32
%8 = alloca i32
%9 = alloca float
store i32 0, i32* %1
store i32 0, i32* %5
store float 0.000000e+00, float* %9
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
br label %13
13: ; preds = %17, %0
%14 = load i32, i32* %5
%15 = load i32, i32* %2
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = load i32, i32* %5
%19 = load i32, i32* %4
%20 = sdiv i32 %18, %19
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = mul nsw i32 %21, 2
store i32 %22, i32* %7
%23 = load i32, i32* %3
%24 = load i32, i32* %7
%25 = mul nsw i32 %23, %24
%26 = sdiv i32 %25, 100
store i32 %26, i32* %8
%27 = load float, float* %9
%28 = load i32, i32* %3
%29 = sitofp i32 %28 to float
%30 = fadd float %27, %29
%31 = load i32, i32* %8
%32 = sitofp i32 %31 to float
%33 = fsub float %30, %32
store float %33, float* %9
%34 = load i32, i32* %5
%35 = add nsw i32 %34, 1
store i32 %35, i32* %5
br label %13
36: ; preds = %13
%37 = load float, float* %9
%38 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %37)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"%.f\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 %28
12: ; preds = %0
%13 = load i32, i32* %3
%14 = load i32, i32* %2
%15 = sitofp i32 %14 to float
br label %16
16: ; preds = %12, %16
%17 = phi float [ 0.000000e+00, %12 ], [ %25, %16 ]
%18 = phi i32 [ 0, %12 ], [ %26, %16 ]
%19 = sdiv i32 %18, %13
%20 = shl nsw i32 %19, 1
%21 = mul nsw i32 %20, %14
%22 = sdiv i32 %21, 100
%23 = fadd float %17, %15
%24 = sitofp i32 %22 to float
%25 = fsub float %23, %24
%26 = add nuw nsw i32 %18, 1
%27 = icmp eq i32 %26, %10
br i1 %27, label %28, label %16
28: ; preds = %16, %0
%29 = phi float [ 0.000000e+00, %0 ], [ %25, %16 ]
%30 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %29)
ret i32 0
}