#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;
  scanf("%d", &n);
  scanf("%d", &m);
  scanf("%d", &k);
  i = 0;
  sum = 0;
  do {
    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)
lea    0xecb(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xebb(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeab(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -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
add    -0x18(%rbp),%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),%r8
mov    0x4(%rsp),%r9d
imul   $0xffffffffae147ae1,%r8,%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    11c7 <main+0xa7>
mov    %r10d,%r11d
and    $0x7ffffffe,%r11d
xor    %ecx,%ecx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
cltd
idiv   %r9d
mov    %eax,%edi
add    %r8d,%esi
lea    0x1(%rcx),%eax
imul   %ebx,%edi
cltd
idiv   %r9d
imul   %ebx,%eax
add    %edi,%esi
add    %r8d,%esi
add    %eax,%esi
add    $0x2,%ecx
cmp    %r11d,%ecx
jne    11a0 <main+0x80>
test   $0x1,%r10b
je     11db <main+0xbb>
mov    %ecx,%eax
cltd
idiv   %r9d
imul   %ebx,%eax
add    %r8d,%esi
add    %eax,%esi
lea    0xe1e(%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
%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)
store i32 0, i32* %5
store i32 0, i32* %6
br label %10
10: ; preds = %24, %0
%11 = load i32, i32* %3
%12 = load i32, i32* %5
%13 = load i32, i32* %4
%14 = sdiv i32 %12, %13
%15 = load i32, i32* %3
%16 = mul nsw i32 2, %15
%17 = sdiv i32 %16, 100
%18 = mul nsw i32 %14, %17
%19 = sub nsw i32 %11, %18
%20 = load i32, i32* %6
%21 = add nsw i32 %20, %19
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 = sdiv i32 %20, %11
%24 = mul i32 %23, %12
%25 = add i32 %10, %21
%26 = add i32 %25, %24
%27 = or i32 %20, 1
%28 = sdiv i32 %27, %11
%29 = mul i32 %28, %12
%30 = add i32 %10, %26
%31 = add i32 %30, %29
%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 = sdiv i32 %37, %11
%42 = mul i32 %41, %12
%43 = add i32 %10, %38
%44 = add i32 %43, %42
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
}