#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 */
scalar_t__ EOF;
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, long long);
scalar_t__ scanf(char *, long long *, long long *);
int main() {
  long long a, b;
  while (scanf("%lld%lld", &a, &b) != EOF) {
    getchar();
    printf("%lld\n", (a + 1) * (b + 1) * a * b / 4);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
mov    0x2e8e(%rip),%rcx
cmp    (%rcx),%rax
je     11a6 <main+0x76>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    -0x18(%rbp),%rcx
add    $0x1,%rcx
imul   %rcx,%rax
imul   -0x10(%rbp),%rax
imul   -0x18(%rbp),%rax
mov    $0x4,%ecx
cqto
idiv   %rcx
mov    %rax,%rsi
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebc(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x2e90(%rip),%r13
cmp    0x0(%r13),%rax
je     11cf <main+0x9f>
lea    0xea4(%rip),%r14
lea    0xe94(%rip),%r15
lea    0x8(%rsp),%r12
mov    %rsp,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x8(%rsp),%rax
lea    0x1(%rax),%rcx
mov    (%rsp),%rdx
lea    0x1(%rdx),%rsi
imul   %rsi,%rcx
imul   %rax,%rdx
imul   %rcx,%rdx
lea    0x3(%rdx),%rsi
test   %rdx,%rdx
cmovns %rdx,%rsi
sar    $0x2,%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
cmp    0x0(%r13),%rax
jne    1180 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

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