#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 angle(long, long, long);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, long *, long *, long *);
int main() {
  long a, b, c;
  scanf("%ld %ld %ld", &a, &b, &c);
  printf("%hhd\n", angle(a, b, c) * angle(b, c, a) * angle(c, a, b));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1050 <scanf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <angle@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <angle@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <angle@plt>
mov    -0x24(%rbp),%esi
imul   %eax,%esi
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xec4(%rip),%rdi
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1050 <scanf@plt>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
call   1040 <angle@plt>
mov    %eax,%ebx
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    0x18(%rsp),%rdx
call   1040 <angle@plt>
imul   %eax,%ebx
mov    0x8(%rsp),%rdi
mov    0x18(%rsp),%rsi
mov    0x10(%rsp),%rdx
call   1040 <angle@plt>
imul   %eax,%ebx
lea    0xe71(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

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