#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 */
double floor(int);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *);
int main() {
  int n;
  double ans;
  while (scanf("%d", &n), n > 0) {
    if (n == 1) {
      printf("0%%\n");
    } else {
      ans = floor(n * 25.0 + 0.5);
      printf("%.0lf%%\n", ans);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    11b9 <main+0x89>
cmpl   $0x1,-0x8(%rbp)
jne    1176 <main+0x46>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b4 <main+0x84>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe7d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe79(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <floor@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xe6b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed1(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    11be <main+0x8e>
lea    0xebb(%rip),%r14
lea    0xeb1(%rip),%r15
lea    0x4(%rsp),%rbx
lea    0xead(%rip),%r12
jmp    11ad <main+0x7d>
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe81(%rip),%xmm0
addsd  0xe81(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <floor@plt>
mov    %r12,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    11be <main+0x8e>
cmp    $0x1,%eax
jne    1170 <main+0x40>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    119a <main+0x6a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"0%%\0A\00"
@.str.2 = [9 x i8] c"%.0lf%%\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
store i32 0, i32* %1
br label %4
4: ; preds = %21, %0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %22
8: ; preds = %4
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %21
13: ; preds = %8
%14 = load i32, i32* %2
%15 = sitofp i32 %14 to double
%16 = call double @llvm.fmuladd.f64(double %15, double 2.500000e+01, double 5.000000e-01)
%17 = fptosi double %16 to i32
%18 = call double @floor(i32 %17)
store double %18, double* %3
%19 = load double, double* %3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %19)
br label %21
21: ; preds = %13, %11
br label %4
22: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"0%%\0A\00"
@.str.2 = [9 x i8] c"%.0lf%%\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %21
6: ; preds = %0, %17
%7 = phi i32 [ %19, %17 ], [ %4, %0 ]
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %17
11: ; preds = %6
%12 = sitofp i32 %7 to double
%13 = call double @llvm.fmuladd.f64(double %12, double 2.500000e+01, double 5.000000e-01)
%14 = fptosi double %13 to i32
%15 = call double @floor(i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %15)
br label %17
17: ; preds = %11, %9
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
%20 = icmp sgt i32 %19, 0
br i1 %20, label %6, label %21
21: ; preds = %17, %0
ret i32 0
}