#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 *, unsigned long long);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  scanf("%d", &n);
  unsigned long long half = (unsigned long long)(n >> 1);
  printf("%llu\n", n & 1 ? (half + 1) * (half + 2) : (half + 1) * (half + 1));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1177 <main+0x57>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    -0x10(%rbp),%rcx
add    $0x2,%rcx
imul   %rcx,%rax
mov    %rax,-0x18(%rbp)
jmp    118f <main+0x6f>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    -0x10(%rbp),%rcx
add    $0x1,%rcx
imul   %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
sar    %ecx
movslq %ecx,%rsi
lea    0x1(%rsi),%rcx
add    $0x2,%rsi
test   $0x1,%al
cmove  %rcx,%rsi
imul   %rcx,%rsi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%llu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = ashr i32 %5, 1
%7 = sext i32 %6 to i64
store i64 %7, i64* %3
%8 = load i32, i32* %2
%9 = and i32 %8, 1
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load i64, i64* %3
%13 = add i64 %12, 1
%14 = load i64, i64* %3
%15 = add i64 %14, 2
%16 = mul i64 %13, %15
br label %23
17: ; preds = %0
%18 = load i64, i64* %3
%19 = add i64 %18, 1
%20 = load i64, i64* %3
%21 = add i64 %20, 1
%22 = mul i64 %19, %21
br label %23
23: ; preds = %17, %11
%24 = phi i64 [ %16, %11 ], [ %22, %17 ]
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%llu\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 = ashr i32 %4, 1
%6 = sext i32 %5 to i64
%7 = and i32 %4, 1
%8 = icmp eq i32 %7, 0
%9 = add nsw i64 %6, 1
%10 = add nsw i64 %6, 2
%11 = select i1 %8, i64 %9, i64 %10
%12 = mul nsw i64 %9, %11
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %12)
ret i32 0
}