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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb3(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea3(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11b4 <main+0x94>
mov    -0x14(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%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,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116d <main+0x4d>
mov    -0x14(%rbp),%esi
lea    0xe45(%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    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),%r10d
test   %r10d,%r10d
jle    1187 <main+0x67>
movslq 0x8(%rsp),%r9
mov    0x4(%rsp),%r8d
imul   $0xffffffffae147ae1,%r9,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x24,%rbx
add    %eax,%ebx
cmp    $0x1,%r10d
jne    118b <main+0x6b>
xor    %ecx,%ecx
xor    %esi,%esi
jmp    11c9 <main+0xa9>
xor    %esi,%esi
jmp    11dd <main+0xbd>
mov    %r10d,%r11d
and    $0xfffffffe,%r11d
xor    %ecx,%ecx
xor    %esi,%esi
cs nopw 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    0xe1f(%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"%d\0A\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
%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* %6
br label %10
10: ; preds = %26, %0
%11 = load i32, i32* %6
%12 = load i32, i32* %2
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load i32, i32* %5
%16 = load i32, i32* %3
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %6
%19 = load i32, i32* %4
%20 = sdiv i32 %18, %19
%21 = load i32, i32* %3
%22 = mul nsw i32 2, %21
%23 = sdiv i32 %22, 100
%24 = mul nsw i32 %20, %23
%25 = sub nsw i32 %17, %24
store i32 %25, i32* %5
br label %26
26: ; preds = %14
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %10
29: ; preds = %10
%30 = load i32, i32* %5
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %30)
ret i32 0
}

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