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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xebc(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeac(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9c(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
imul   -0x10(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     116d <main+0x4d>
mov    -0x1c(%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>
movslq 0x8(%rsp),%r8
imul   $0xffffffffae147ae1,%r8,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x24,%rbx
add    %eax,%ebx
mov    0x4(%rsp),%r9d
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    %r8d,%esi
mov    %ecx,%eax
cltd
idiv   %r9d
mov    %eax,%edi
imul   %ebx,%edi
add    %esi,%edi
add    %r8d,%edi
lea    0x1(%rcx),%eax
cltd
idiv   %r9d
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    %r8d,%esi
mov    %ecx,%eax
cltd
idiv   %r9d
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"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
store i32 0, i32* %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* %5)
br label %11
11: ; preds = %26, %0
%12 = load i32, i32* %3
%13 = mul nsw i32 2, %12
%14 = sdiv i32 %13, 100
store i32 %14, i32* %4
%15 = load i32, i32* %7
%16 = load i32, i32* %3
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %6
%19 = load i32, i32* %5
%20 = sdiv i32 %18, %19
%21 = load i32, i32* %4
%22 = mul nsw i32 %20, %21
%23 = sub nsw i32 %17, %22
store i32 %23, i32* %7
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
store i32 %25, i32* %6
br label %26
26: ; preds = %11
%27 = load i32, i32* %6
%28 = load i32, i32* %2
%29 = icmp slt i32 %27, %28
br i1 %29, label %11, label %30
30: ; preds = %26
%31 = load i32, i32* %7
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%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 = sdiv i32 %10, -50
%12 = load i32, i32* %3
%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, %12
%25 = mul i32 %24, %11
%26 = add i32 %23, %25
%27 = or i32 %20, 1
%28 = add nsw i32 %10, %26
%29 = sdiv i32 %27, %12
%30 = mul i32 %29, %11
%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, %12
%43 = mul i32 %42, %11
%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 ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %46)
ret i32 0
}