#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 scanf(char *, long long *);
int main() {
  long long n;
  while (scanf("%lld", &n) == 1) {
    if (n < 0)
      break;
    if (n == 1)
      printf("0%\n");
    else
      printf("%lld%\n", (n * 25));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    118e <main+0x6e>
cmpq   $0x0,-0x10(%rbp)
jge    1158 <main+0x38>
jmp    118e <main+0x6e>
cmpq   $0x1,-0x10(%rbp)
jne    1176 <main+0x56>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1189 <main+0x69>
imul   $0x19,-0x10(%rbp),%rsi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    112f <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
mov    %rsp,%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11ab <main+0x8b>
mov    (%rsp),%rax
test   %rax,%rax
js     11ab <main+0x8b>
lea    0xeb9(%rip),%r14
lea    0xead(%rip),%r15
mov    %rsp,%rbx
lea    0xeac(%rip),%r12
nopl   (%rax)
cmp    $0x1,%rax
jne    1180 <main+0x60>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1192 <main+0x72>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rax,%rax,4),%rax
lea    (%rax,%rax,4),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11ab <main+0x8b>
mov    (%rsp),%rax
test   %rax,%rax
jns    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [4 x i8] c"0%\0A\00"
@.str.2 = [7 x i8] c"%lld%\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
br label %3
3: ; preds = %19, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %2)
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %20
6: ; preds = %3
%7 = load i64, i64* %2
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %6
br label %20
10: ; preds = %6
%11 = load i64, i64* %2
%12 = icmp eq i64 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %19
15: ; preds = %10
%16 = load i64, i64* %2
%17 = mul nsw i64 %16, 25
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 %17)
br label %19
19: ; preds = %15, %13
br label %3
20: ; preds = %9, %3
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [4 x i8] c"0%\0A\00"
@.str.2 = [7 x i8] c"%lld%\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = icmp ne i32 %3, 1
%5 = load i64, i64* %1
%6 = icmp slt i64 %5, 0
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %22, label %8
8: ; preds = %0, %16
%9 = phi i64 [ %19, %16 ], [ %5, %0 ]
%10 = icmp eq i64 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %16
13: ; preds = %8
%14 = mul nsw i64 %9, 25
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 %14)
br label %16
16: ; preds = %13, %11
%17 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%18 = icmp ne i32 %17, 1
%19 = load i64, i64* %1
%20 = icmp slt i64 %19, 0
%21 = select i1 %18, i1 true, i1 %20
br i1 %21, label %22, label %8
22: ; preds = %16, %0
ret i32 0
}