#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 *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, m, k, i, sum;
  i = 0;
  sum = 0;
  scanf("%d", &n);
  scanf("%d", &m);
  scanf("%d", &k);
  do {
    sum = sum + m - (i / k * (2 * m / 100));
    i++;
  } while (n > i);
  printf("\n%d", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xead(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9d(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x18(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    $0x64,%esi
cltd
idiv   %esi
mov    %eax,%edx
mov    -0x1c(%rbp),%eax
imul   %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     116d <main+0x4d>
mov    -0x18(%rbp),%esi
lea    0xe47(%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    0xed5(%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>
movslq 0x8(%rsp),%r9
mov    0x4(%rsp),%r8d
imul   $0xffffffffae147ae1,%r9,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x24,%rbx
add    %eax,%ebx
mov    0xc(%rsp),%eax
mov    $0x1,%r10d
cmp    $0x2,%eax
cmovge %eax,%r10d
jge    118a <main+0x6a>
xor    %ecx,%ecx
xor    %esi,%esi
jmp    11c9 <main+0xa9>
mov    %r10d,%r11d
and    $0x7ffffffe,%r11d
xor    %ecx,%ecx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
add    %r9d,%esi
mov    %ecx,%eax
cltd
idiv   %r8d
mov    %eax,%edi
imul   %ebx,%edi
add    %esi,%edi
add    %r9d,%edi
lea    0x1(%rcx),%eax
cltd
idiv   %r8d
mov    %eax,%esi
imul   %ebx,%esi
add    %edi,%esi
add    $0x2,%ecx
cmp    %r11d,%ecx
jne    11a0 <main+0x80>
test   $0x1,%r10b
je     11dd <main+0xbd>
add    %r9d,%esi
mov    %ecx,%eax
cltd
idiv   %r8d
imul   %ebx,%eax
add    %eax,%esi
lea    0xe1c(%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 = [4 x i8] c"\0A%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
store i32 0, i32* %6
%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 = %24, %0
%11 = load i32, i32* %6
%12 = load i32, i32* %3
%13 = add nsw i32 %11, %12
%14 = load i32, i32* %5
%15 = load i32, i32* %4
%16 = sdiv i32 %14, %15
%17 = load i32, i32* %3
%18 = mul nsw i32 2, %17
%19 = sdiv i32 %18, 100
%20 = mul nsw i32 %16, %19
%21 = sub nsw i32 %13, %20
store i32 %21, i32* %6
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %24
24: ; preds = %10
%25 = load i32, i32* %2
%26 = load i32, i32* %5
%27 = icmp sgt i32 %25, %26
br i1 %27, label %10, label %28
28: ; preds = %24
%29 = load i32, i32* %6
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %29)
ret i32 0
}

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