#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*/ getch();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i, mul, ans;
  ans = 1;
  int myBigNum[1000] = {
      7, 3, 1, 6, 7, 1, 7, 6, 5, 3, 1, 3, 3, 0, 6, 2, 4, 9, 1, 9, 2, 2, 5, 1,
      1, 9, 6, 7, 4, 4, 2, 6, 5, 7, 4, 7, 4, 2, 3, 5, 5, 3, 4, 9, 1, 9, 4, 9,
      3, 4, 9, 6, 9, 8, 3, 5, 2, 0, 3, 1, 2, 7, 7, 4, 5, 0, 6, 3, 2, 6, 2, 3,
      9, 5, 7, 8, 3, 1, 8, 0, 1, 6, 9, 8, 4, 8, 0, 1, 8, 6, 9, 4, 7, 8, 8, 5,
      1, 8, 4, 3, 8, 5, 8, 6, 1, 5, 6, 0, 7, 8, 9, 1, 1, 2, 9, 4, 9, 4, 9, 5,
      4, 5, 9, 5, 0, 1, 7, 3, 7, 9, 5, 8, 3, 3, 1, 9, 5, 2, 8, 5, 3, 2, 0, 8,
      8, 0, 5, 5, 1, 1, 1, 2, 5, 4, 0, 6, 9, 8, 7, 4, 7, 1, 5, 8, 5, 2, 3, 8,
      6, 3, 0, 5, 0, 7, 1, 5, 6, 9, 3, 2, 9, 0, 9, 6, 3, 2, 9, 5, 2, 2, 7, 4,
      4, 3, 0, 4, 3, 5, 5, 7, 6, 6, 8, 9, 6, 6, 4, 8, 9, 5, 0, 4, 4, 5, 2, 4,
      4, 5, 2, 3, 1, 6, 1, 7, 3, 1, 8, 5, 6, 4, 0, 3, 0, 9, 8, 7, 1, 1, 1, 2,
      1, 7, 2, 2, 3, 8, 3, 1, 1, 3, 6, 2, 2, 2, 9, 8, 9, 3, 4, 2, 3, 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, 2,
      0, 0, 0, 5, 5, 9, 3, 5, 7, 2, 9, 7, 2, 5, 7, 1, 6, 3, 6, 2, 6, 9, 5, 6,
      1, 8, 8, 2, 6, 7, 0, 4, 2, 8, 2, 5, 2, 4, 8, 3, 6, 0, 0, 8, 2, 3, 2, 5,
      7, 5, 3, 0, 4, 2, 0, 7, 5, 2, 9, 6, 3, 4, 5, 0};
  for (i = 0; i < 1000 - 5; i++) {
    mul = myBigNum[i] * myBigNum[i + 1] * myBigNum[i + 2] * myBigNum[i + 3] *
          myBigNum[i + 4];
    if (mul > ans) {
      ans = mul;
    }
  }
  printf("\n%d", ans);
  getch();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xfb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x10(%rbp)
lea    -0xfb0(%rbp),%rdi
lea    0xea9(%rip),%rsi
mov    $0xfa0,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e3,-0x8(%rbp)
jge    11ec <main+0xbc>
movslq -0x8(%rbp),%rax
mov    -0xfb0(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x8(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x8(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    -0x8(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
imul   -0xfb0(%rbp,%rcx,4),%eax
ff
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11d9 <main+0xa9>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    11de <main+0xae>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1168 <main+0x38>
mov    -0x10(%rbp),%esi
lea    0x1daa(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getch@plt>
xor    %eax,%eax
add    $0xfb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x7,%r10d
mov    $0x3,%edi
mov    $0x1,%eax
mov    $0x6,%r11d
mov    $0x5,%r9d
lea    0xebc(%rip),%r8
mov    $0x1,%edx
nopl   0x0(%rax)
mov    %r10d,%ebx
mov    %eax,%r10d
imul   %edi,%ebx
mov    %eax,%esi
imul   %r11d,%esi
imul   %ebx,%esi
mov    -0x4(%r8,%r9,4),%eax
imul   %eax,%esi
cmp    %edx,%esi
cmovle %edx,%esi
cmp    $0x3e7,%r9
je     119d <main+0x7d>
mov    %r11d,%ecx
imul   %r10d,%edi
imul   %r11d,%edi
imul   %eax,%edi
mov    (%r8,%r9,4),%r11d
imul   %r11d,%edi
cmp    %esi,%edi
mov    %edi,%edx
cmovle %esi,%edx
add    $0x2,%r9
mov    %ecx,%edi
jmp    1150 <main+0x30>
lea    0x1dfc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getch@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.myBigNum = [1000 x i32] [i32 7, i32 3, i32 1, i32 6, i32 7, i32 1, i32 7, i32 6, i32 5, i32 3, i32 1, i32 3, i32 3, i32 0, i32 6, i32 2, i32 4, i32 9, i32 1, i32 9, i32 2, i32 2, i32 5, i32 1, i32 1, i32 9, i32 6, i32 7, i32 4, i32 4, i32 2, i32 6, i32 5, i32 7, i32 4, i32 7, i32 4, i32 2, i32 3, i32 5, i32 5, i32 3, i32 4, i32 9, i32 1, i32 9, i32 4, i32 9, i32 3, i32 4, i32 9, i32 6, i32 9, i32 8, i32 3, i32 5, i32 2, i32 0, i32 3, i32 1, i32 2, i32 7, i32 7, i32 4, i32 5, i32 0, i32 6, i32 3, i32 2, i32 6, i32 2, i32 3, i32 9, i32 5, i32 7, i32 8, i32 3, i32 1, i32 8, i32 0, i32 1, i32 6, i32 9, i32 8, i32 4, i32 8, i32 0, i32 1, i32 8, i32 6, i32 9, i32 4, i32 7, i32 8, i32 8, i32 5, i32 1, i32 8, i32 4, i32 3, i32 8, i32 5, i32 8, i32 6, i32 1, i32 5, i32 6, i32 0, i32 7, i32 8, i32 9, i32 1, i32 1, i32 2, i32 9, i32 4, i32 9, i32 4, i32 9, i32 5, i32 4, i32 5, i32 9, i32 5, i32 0, i32 1, i32 7, i32 3, i32 7, i32 9, i32 5, i32 8, i32 3, i32 3, i32 1, i32 9, i32 5, i32 2, i32 8, i32 5, i32 3, i32 2, i32 0, i32 8, i32 8, i32 0, i32 5, i32 5, i32 1, i32 1, i32 1, i32 2, i32 5, i32 4, i32 0, i32 6, i32 9, i32 8, i32 7, i32 4, i32 7, i32 1, i32 5, i32 8, i32 5, i32 2, i32 3, i32 8, i32 6, i32 3, i32 0, i32 5, i32 0, i32 7, i32 1, i32 5, i32 6, i32 9, i32 3, i32 2, i32 9, i32 0, i32 9, i32 6, i32 3, i32 2, i32 9, i32 5, i32 2, i32 2, i32 7, i32 4, i32 4, i32 3, i32 0, i32 4, i32 3, i32 5, i32 5, i32 7, i32 6, i32 6, i32 8, i32 9, i32 6, i32 6, i32 4, i32 8, i32 9, i32 5, i32 0, i32 4, i32 4, i32 5, i32 2, i32 4, i32 4, i32 5, i32 2, i32 3, i32 1, i32 6, i32 1, i32 7, i32 3, i32 1, i32 8, i32 5, i32 6, i32 4, i32 0, i32 3, i32 0, i32 9, i32 8, i32 7, i32 1, i32 1, i32 1, i32 2, i32 1, i32 7, i32 2, i32 2, i32 3, i32 8, i32 3, i32 1, i32 1, i32 3, i32 6, i32 2, i32 2, i32 2, i32 9, i32 8, i32 9, i32 3, i32 4, i32 2, i32 3, i32 3, i32 8, i32 0, i32 3, i32 0, i32 8, i32 1, i32 3, i32 5, i32 3, i32 3, i32 6, i32 2, i32 7, i32 6, i32 6, i32 1, i32 4, i32 2, i32 8, i32 2, i32 8, i32 0, i32 6, i32 4, i32 4, i32 4, i32 4, i32 8, i32 6, i32 6, i32 4, i32 5, i32 2, i32 3, i32 8, i32 7, i32 4, i32 9, i32 3, i32 0, i32 3, i32 5, i32 8, i32 9, i32 0, i32 7, i32 2, i32 9, i32 6, i32 2, i32 9, i32 0, i32 4, i32 9, i32 1, i32 5, i32 6, i32 0, i32 4, i32 4, i32 0, i32 7, i32 7, i32 2, i32 3, i32 9, i32 0, i32 7, i32 1, i32 3, i32 8, i32 1, i32 0, i32 5, i32 1, i32 5, i32 8, i32 5, i32 9, i32 3, i32 0, i32 7, i32 9, i32 6, i32 0, i32 8, i32 6, i32 6, i32 7, i32 0, i32 1, i32 7, i32 2, i32 4, i32 2, i32 7, i32 1, i32 2, i32 1, i32 8, i32 8, i32 3, i32 9, i32 9, i32 8, i32 7, i32 9, i32 7, i32 9, i32 0, i32 8, i32 7, i32 9, i32 2, i32 2, i32 7, i32 4, i32 9, i32 2, i32 1, i32 9, i32 0, i32 1, i32 6, i32 9, i32 9, i32 7, i32 2, i32 0, i32 8, i32 8, i32 8, i32 0, i32 9, i32 3, i32 7, i32 7, i32 6, i32 6, i32 5, i32 7, i32 2, i32 7, i32 3, i32 3, i32 3, i32 0, i32 0, i32 1, i32 0, i32 5, i32 3, i32 3, i32 6, i32 7, i32 8, i32 8, i32 1, i32 2, i32 2, i32 0, i32 2, i32 3, i32 5, i32 4, i32 2, i32 1, i32 8, i32 0, i32 9, i32 7, i32 5, i32 1, i32 2, i32 5, i32 4, i32 5, i32 4, i32 0, i32 5, i32 9, i32 4, i32 7, i32 5, i32 2, i32 2, i32 4, i32 3, i32 5, i32 2, i32 5, i32 8, i32 4, i32 9, i32 0, i32 7, i32 7, i32 1, i32 1, i32 6, i32 7, i32 0, i32 5, i32 5, i32 6, i32 0, i32 1, i32 3, i32 6, i32 0, i32 4, i32 8, i32 3, i32 9, i32 5, i32 8, i32 6, i32 4, i32 4, i32 6, i32 7, i32 0, i32 6, i32 3, i32 2, i32 4, i32 4, i32 1, i32 5, i32 7, i32 2, i32 2, i32 1, i32 5, i32 5, i32 3, i32 9, i32 7, i32 5, i32 3, i32 6, i32 9, i32 7, i32 8, i32 1, i32 7, i32 9, i32 7, i32 7, i32 8, i32 4, i32 6, i32 1, i32 7, i32 4, i32 0, i32 6, i32 4, i32 9, i32 5, i32 5, i32 1, i32 4, i32 9, i32 2, i32 9, i32 0, i32 8, i32 6, i32 2, i32 5, i32 6, i32 9, i32 3, i32 2, i32 1, i32 9, i32 7, i32 8, i32 4, i32 6, i32 8, i32 6, i32 2, i32 2, i32 4, i32 8, i32 2, i32 8, i32 3, i32 9, i32 7, i32 2, i32 2, i32 4, i32 1, i32 3, i32 7, i32 5, i32 6, i32 5, i32 7, i32 0, i32 5, i32 6, i32 0, i32 5, i32 7, i32 4, i32 9, i32 0, i32 2, i32 6, i32 1, i32 4, i32 0, i32 7, i32 9, i32 7, i32 2, i32 9, i32 6, i32 8, i32 6, i32 5, i32 2, i32 4, i32 1, i32 4, i32 5, i32 3, i32 5, i32 1, i32 0, i32 0, i32 4, i32 7, i32 4, i32 8, i32 2, i32 1, i32 6, i32 6, i32 3, i32 7, i32 0, i32 4, i32 8, i32 4, i32 4, i32 0, i32 3, i32 1, i32 9, i32 9, i32 8, i32 9, i32 0, i32 0, i32 0, i32 8, i32 8, i32 9, i32 5, i32 2, i32 4, i32 3, i32 4, i32 5, i32 0, i32 6, i32 5, i32 8, i32 5, i32 4, i32 1, i32 2, i32 2, i32 7, i32 5, i32 8, i32 8, i32 6, i32 6, i32 6, i32 8, i32 8, i32 1, i32 1, i32 6, i32 4, i32 2, i32 7, i32 1, i32 7, i32 1, i32 4, i32 7, i32 9, i32 9, i32 2, i32 4, i32 4, i32 4, i32 2, i32 9, i32 2, i32 8, i32 2, i32 3, i32 0, i32 8, i32 6, i32 3, i32 4, i32 6, i32 5, i32 6, i32 7, i32 4, i32 8, i32 1, i32 3, i32 9, i32 1, i32 9, i32 1, i32 2, i32 3, i32 1, i32 6, i32 2, i32 8, i32 2, i32 4, i32 5, i32 8, i32 6, i32 1, i32 7, i32 8, i32 6, i32 6, i32 4, i32 5, i32 8, i32 3, i32 5, i32 9, i32 1, i32 2, i32 4, i32 5, i32 6, i32 6, i32 5, i32 2, i32 9, i32 4, i32 7, i32 6, i32 5, i32 4, i32 5, i32 6, i32 8, i32 2, i32 8, i32 4, i32 8, i32 9, i32 1, i32 2, i32 8, i32 8, i32 3, i32 1, i32 4, i32 2, i32 6, i32 0, i32 7, i32 6, i32 9, i32 0, i32 0, i32 4, i32 2, i32 2, i32 4, i32 2, i32 1, i32 9, i32 0, i32 2, i32 2, i32 6, i32 7, i32 1, i32 0, i32 5, i32 5, i32 6, i32 2, i32 6, i32 3, i32 2, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 9, i32 3, i32 7, i32 0, i32 5, i32 4, i32 4, i32 2, i32 1, i32 7, i32 5, i32 0, i32 6, i32 9, i32 4, i32 1, i32 6, i32 5, i32 8, i32 9, i32 6, i32 0, i32 4, i32 0, i32 8, i32 0, i32 7, i32 1, i32 9, i32 8, i32 4, i32 0, i32 3, i32 8, i32 5, i32 0, i32 9, i32 6, i32 2, i32 4, i32 5, i32 5, i32 4, i32 4, i32 4, i32 3, i32 6, i32 2, i32 9, i32 8, i32 1, i32 2, i32 3, i32 0, i32 9, i32 8, i32 7, i32 8, i32 7, i32 9, i32 9, i32 2, i32 7, i32 2, i32 4, i32 4, i32 2, i32 8, i32 4, i32 9, i32 0, i32 9, i32 1, i32 8, i32 8, i32 8, i32 4, i32 5, i32 8, i32 0, i32 1, i32 5, i32 6, i32 1, i32 6, i32 6, i32 0, i32 9, i32 7, i32 9, i32 1, i32 9, i32 1, i32 3, i32 3, i32 8, i32 7, i32 5, i32 4, i32 9, i32 9, i32 2, i32 0, i32 0, i32 5, i32 2, i32 4, i32 0, i32 6, i32 3, i32 6, i32 8, i32 9, i32 9, i32 1, i32 2, i32 5, i32 6, i32 0, i32 7, i32 1, i32 7, i32 6, i32 0, i32 6, i32 0, i32 5, i32 8, i32 8, i32 6, i32 1, i32 1, i32 6, i32 4, i32 6, i32 7, i32 1, i32 0, i32 9, i32 4, i32 0, i32 5, i32 0, i32 7, i32 7, i32 5, i32 4, i32 1, i32 0, i32 0, i32 2, i32 2, i32 5, i32 6, i32 9, i32 8, i32 3, i32 1, i32 5, i32 5, i32 2, i32 0, i32 0, i32 0, i32 5, i32 5, i32 9, i32 3, i32 5, i32 7, i32 2, i32 9, i32 7, i32 2, i32 5, i32 7, i32 1, i32 6, i32 3, i32 6, i32 2, i32 6, i32 9, i32 5, i32 6, i32 1, i32 8, i32 8, i32 2, i32 6, i32 7, i32 0, i32 4, i32 2, i32 8, i32 2, i32 5, i32 2, i32 4, i32 8, i32 3, i32 6, i32 0, i32 0, i32 8, i32 2, i32 3, i32 2, i32 5, i32 7, i32 5, i32 3, i32 0, i32 4, i32 2, i32 0, i32 7, i32 5, i32 2, i32 9, i32 6, i32 3, i32 4, i32 5, i32 0]
@.str = [4 x i8] c"\0A%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [1000 x i32]
store i32 0, i32* %1
store i32 1, i32* %4
%6 = bitcast [1000 x i32]* %5 to i8*
store i32 0, i32* %2
br label %7
7: ; preds = %45, %0
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 995
br i1 %9, label %10, label %48
10: ; preds = %7
%11 = load i32, i32* %2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [1000 x i32], [1000 x i32]* %5, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1000 x i32], [1000 x i32]* %5, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = mul nsw i32 %14, %19
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1000 x i32], [1000 x i32]* %5, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = mul nsw i32 %20, %25
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 3
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1000 x i32], [1000 x i32]* %5, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = mul nsw i32 %26, %31
%33 = load i32, i32* %2
%34 = add nsw i32 %33, 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1000 x i32], [1000 x i32]* %5, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = mul nsw i32 %32, %37
store i32 %38, i32* %3
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %10
%43 = load i32, i32* %3
store i32 %43, i32* %4
br label %44
44: ; preds = %42, %10
br label %45
45: ; preds = %44
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
br label %7
48: ; preds = %7
%49 = load i32, i32* %4
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %49)
%51 = call i32 (...) @getch()
ret i32 0
}

LLVM IR (-O2):
@__const.main.myBigNum = [1000 x i32] [i32 7, i32 3, i32 1, i32 6, i32 7, i32 1, i32 7, i32 6, i32 5, i32 3, i32 1, i32 3, i32 3, i32 0, i32 6, i32 2, i32 4, i32 9, i32 1, i32 9, i32 2, i32 2, i32 5, i32 1, i32 1, i32 9, i32 6, i32 7, i32 4, i32 4, i32 2, i32 6, i32 5, i32 7, i32 4, i32 7, i32 4, i32 2, i32 3, i32 5, i32 5, i32 3, i32 4, i32 9, i32 1, i32 9, i32 4, i32 9, i32 3, i32 4, i32 9, i32 6, i32 9, i32 8, i32 3, i32 5, i32 2, i32 0, i32 3, i32 1, i32 2, i32 7, i32 7, i32 4, i32 5, i32 0, i32 6, i32 3, i32 2, i32 6, i32 2, i32 3, i32 9, i32 5, i32 7, i32 8, i32 3, i32 1, i32 8, i32 0, i32 1, i32 6, i32 9, i32 8, i32 4, i32 8, i32 0, i32 1, i32 8, i32 6, i32 9, i32 4, i32 7, i32 8, i32 8, i32 5, i32 1, i32 8, i32 4, i32 3, i32 8, i32 5, i32 8, i32 6, i32 1, i32 5, i32 6, i32 0, i32 7, i32 8, i32 9, i32 1, i32 1, i32 2, i32 9, i32 4, i32 9, i32 4, i32 9, i32 5, i32 4, i32 5, i32 9, i32 5, i32 0, i32 1, i32 7, i32 3, i32 7, i32 9, i32 5, i32 8, i32 3, i32 3, i32 1, i32 9, i32 5, i32 2, i32 8, i32 5, i32 3, i32 2, i32 0, i32 8, i32 8, i32 0, i32 5, i32 5, i32 1, i32 1, i32 1, i32 2, i32 5, i32 4, i32 0, i32 6, i32 9, i32 8, i32 7, i32 4, i32 7, i32 1, i32 5, i32 8, i32 5, i32 2, i32 3, i32 8, i32 6, i32 3, i32 0, i32 5, i32 0, i32 7, i32 1, i32 5, i32 6, i32 9, i32 3, i32 2, i32 9, i32 0, i32 9, i32 6, i32 3, i32 2, i32 9, i32 5, i32 2, i32 2, i32 7, i32 4, i32 4, i32 3, i32 0, i32 4, i32 3, i32 5, i32 5, i32 7, i32 6, i32 6, i32 8, i32 9, i32 6, i32 6, i32 4, i32 8, i32 9, i32 5, i32 0, i32 4, i32 4, i32 5, i32 2, i32 4, i32 4, i32 5, i32 2, i32 3, i32 1, i32 6, i32 1, i32 7, i32 3, i32 1, i32 8, i32 5, i32 6, i32 4, i32 0, i32 3, i32 0, i32 9, i32 8, i32 7, i32 1, i32 1, i32 1, i32 2, i32 1, i32 7, i32 2, i32 2, i32 3, i32 8, i32 3, i32 1, i32 1, i32 3, i32 6, i32 2, i32 2, i32 2, i32 9, i32 8, i32 9, i32 3, i32 4, i32 2, i32 3, i32 3, i32 8, i32 0, i32 3, i32 0, i32 8, i32 1, i32 3, i32 5, i32 3, i32 3, i32 6, i32 2, i32 7, i32 6, i32 6, i32 1, i32 4, i32 2, i32 8, i32 2, i32 8, i32 0, i32 6, i32 4, i32 4, i32 4, i32 4, i32 8, i32 6, i32 6, i32 4, i32 5, i32 2, i32 3, i32 8, i32 7, i32 4, i32 9, i32 3, i32 0, i32 3, i32 5, i32 8, i32 9, i32 0, i32 7, i32 2, i32 9, i32 6, i32 2, i32 9, i32 0, i32 4, i32 9, i32 1, i32 5, i32 6, i32 0, i32 4, i32 4, i32 0, i32 7, i32 7, i32 2, i32 3, i32 9, i32 0, i32 7, i32 1, i32 3, i32 8, i32 1, i32 0, i32 5, i32 1, i32 5, i32 8, i32 5, i32 9, i32 3, i32 0, i32 7, i32 9, i32 6, i32 0, i32 8, i32 6, i32 6, i32 7, i32 0, i32 1, i32 7, i32 2, i32 4, i32 2, i32 7, i32 1, i32 2, i32 1, i32 8, i32 8, i32 3, i32 9, i32 9, i32 8, i32 7, i32 9, i32 7, i32 9, i32 0, i32 8, i32 7, i32 9, i32 2, i32 2, i32 7, i32 4, i32 9, i32 2, i32 1, i32 9, i32 0, i32 1, i32 6, i32 9, i32 9, i32 7, i32 2, i32 0, i32 8, i32 8, i32 8, i32 0, i32 9, i32 3, i32 7, i32 7, i32 6, i32 6, i32 5, i32 7, i32 2, i32 7, i32 3, i32 3, i32 3, i32 0, i32 0, i32 1, i32 0, i32 5, i32 3, i32 3, i32 6, i32 7, i32 8, i32 8, i32 1, i32 2, i32 2, i32 0, i32 2, i32 3, i32 5, i32 4, i32 2, i32 1, i32 8, i32 0, i32 9, i32 7, i32 5, i32 1, i32 2, i32 5, i32 4, i32 5, i32 4, i32 0, i32 5, i32 9, i32 4, i32 7, i32 5, i32 2, i32 2, i32 4, i32 3, i32 5, i32 2, i32 5, i32 8, i32 4, i32 9, i32 0, i32 7, i32 7, i32 1, i32 1, i32 6, i32 7, i32 0, i32 5, i32 5, i32 6, i32 0, i32 1, i32 3, i32 6, i32 0, i32 4, i32 8, i32 3, i32 9, i32 5, i32 8, i32 6, i32 4, i32 4, i32 6, i32 7, i32 0, i32 6, i32 3, i32 2, i32 4, i32 4, i32 1, i32 5, i32 7, i32 2, i32 2, i32 1, i32 5, i32 5, i32 3, i32 9, i32 7, i32 5, i32 3, i32 6, i32 9, i32 7, i32 8, i32 1, i32 7, i32 9, i32 7, i32 7, i32 8, i32 4, i32 6, i32 1, i32 7, i32 4, i32 0, i32 6, i32 4, i32 9, i32 5, i32 5, i32 1, i32 4, i32 9, i32 2, i32 9, i32 0, i32 8, i32 6, i32 2, i32 5, i32 6, i32 9, i32 3, i32 2, i32 1, i32 9, i32 7, i32 8, i32 4, i32 6, i32 8, i32 6, i32 2, i32 2, i32 4, i32 8, i32 2, i32 8, i32 3, i32 9, i32 7, i32 2, i32 2, i32 4, i32 1, i32 3, i32 7, i32 5, i32 6, i32 5, i32 7, i32 0, i32 5, i32 6, i32 0, i32 5, i32 7, i32 4, i32 9, i32 0, i32 2, i32 6, i32 1, i32 4, i32 0, i32 7, i32 9, i32 7, i32 2, i32 9, i32 6, i32 8, i32 6, i32 5, i32 2, i32 4, i32 1, i32 4, i32 5, i32 3, i32 5, i32 1, i32 0, i32 0, i32 4, i32 7, i32 4, i32 8, i32 2, i32 1, i32 6, i32 6, i32 3, i32 7, i32 0, i32 4, i32 8, i32 4, i32 4, i32 0, i32 3, i32 1, i32 9, i32 9, i32 8, i32 9, i32 0, i32 0, i32 0, i32 8, i32 8, i32 9, i32 5, i32 2, i32 4, i32 3, i32 4, i32 5, i32 0, i32 6, i32 5, i32 8, i32 5, i32 4, i32 1, i32 2, i32 2, i32 7, i32 5, i32 8, i32 8, i32 6, i32 6, i32 6, i32 8, i32 8, i32 1, i32 1, i32 6, i32 4, i32 2, i32 7, i32 1, i32 7, i32 1, i32 4, i32 7, i32 9, i32 9, i32 2, i32 4, i32 4, i32 4, i32 2, i32 9, i32 2, i32 8, i32 2, i32 3, i32 0, i32 8, i32 6, i32 3, i32 4, i32 6, i32 5, i32 6, i32 7, i32 4, i32 8, i32 1, i32 3, i32 9, i32 1, i32 9, i32 1, i32 2, i32 3, i32 1, i32 6, i32 2, i32 8, i32 2, i32 4, i32 5, i32 8, i32 6, i32 1, i32 7, i32 8, i32 6, i32 6, i32 4, i32 5, i32 8, i32 3, i32 5, i32 9, i32 1, i32 2, i32 4, i32 5, i32 6, i32 6, i32 5, i32 2, i32 9, i32 4, i32 7, i32 6, i32 5, i32 4, i32 5, i32 6, i32 8, i32 2, i32 8, i32 4, i32 8, i32 9, i32 1, i32 2, i32 8, i32 8, i32 3, i32 1, i32 4, i32 2, i32 6, i32 0, i32 7, i32 6, i32 9, i32 0, i32 0, i32 4, i32 2, i32 2, i32 4, i32 2, i32 1, i32 9, i32 0, i32 2, i32 2, i32 6, i32 7, i32 1, i32 0, i32 5, i32 5, i32 6, i32 2, i32 6, i32 3, i32 2, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 9, i32 3, i32 7, i32 0, i32 5, i32 4, i32 4, i32 2, i32 1, i32 7, i32 5, i32 0, i32 6, i32 9, i32 4, i32 1, i32 6, i32 5, i32 8, i32 9, i32 6, i32 0, i32 4, i32 0, i32 8, i32 0, i32 7, i32 1, i32 9, i32 8, i32 4, i32 0, i32 3, i32 8, i32 5, i32 0, i32 9, i32 6, i32 2, i32 4, i32 5, i32 5, i32 4, i32 4, i32 4, i32 3, i32 6, i32 2, i32 9, i32 8, i32 1, i32 2, i32 3, i32 0, i32 9, i32 8, i32 7, i32 8, i32 7, i32 9, i32 9, i32 2, i32 7, i32 2, i32 4, i32 4, i32 2, i32 8, i32 4, i32 9, i32 0, i32 9, i32 1, i32 8, i32 8, i32 8, i32 4, i32 5, i32 8, i32 0, i32 1, i32 5, i32 6, i32 1, i32 6, i32 6, i32 0, i32 9, i32 7, i32 9, i32 1, i32 9, i32 1, i32 3, i32 3, i32 8, i32 7, i32 5, i32 4, i32 9, i32 9, i32 2, i32 0, i32 0, i32 5, i32 2, i32 4, i32 0, i32 6, i32 3, i32 6, i32 8, i32 9, i32 9, i32 1, i32 2, i32 5, i32 6, i32 0, i32 7, i32 1, i32 7, i32 6, i32 0, i32 6, i32 0, i32 5, i32 8, i32 8, i32 6, i32 1, i32 1, i32 6, i32 4, i32 6, i32 7, i32 1, i32 0, i32 9, i32 4, i32 0, i32 5, i32 0, i32 7, i32 7, i32 5, i32 4, i32 1, i32 0, i32 0, i32 2, i32 2, i32 5, i32 6, i32 9, i32 8, i32 3, i32 1, i32 5, i32 5, i32 2, i32 0, i32 0, i32 0, i32 5, i32 5, i32 9, i32 3, i32 5, i32 7, i32 2, i32 9, i32 7, i32 2, i32 5, i32 7, i32 1, i32 6, i32 3, i32 6, i32 2, i32 6, i32 9, i32 5, i32 6, i32 1, i32 8, i32 8, i32 2, i32 6, i32 7, i32 0, i32 4, i32 2, i32 8, i32 2, i32 5, i32 2, i32 4, i32 8, i32 3, i32 6, i32 0, i32 0, i32 8, i32 2, i32 3, i32 2, i32 5, i32 7, i32 5, i32 3, i32 0, i32 4, i32 2, i32 0, i32 7, i32 5, i32 2, i32 9, i32 6, i32 3, i32 4, i32 5, i32 0]
@.str = [4 x i8] c"\0A%d\00"
define i32 @main() {
br label %1
1: ; preds = %18, %0
%2 = phi i32 [ 6, %0 ], [ %25, %18 ]
%3 = phi i32 [ 1, %0 ], [ %13, %18 ]
%4 = phi i32 [ 3, %0 ], [ %2, %18 ]
%5 = phi i32 [ 7, %0 ], [ %3, %18 ]
%6 = phi i64 [ 0, %0 ], [ %19, %18 ]
%7 = phi i32 [ 1, %0 ], [ %28, %18 ]
%8 = mul nsw i32 %4, %5
%9 = mul nsw i32 %8, %3
%10 = mul nsw i32 %9, %2
%11 = add nuw nsw i64 %6, 4
%12 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.main.myBigNum, i64 0, i64 %11
%13 = load i32, i32* %12
%14 = mul nsw i32 %10, %13
%15 = icmp sgt i32 %14, %7
%16 = select i1 %15, i32 %14, i32 %7
%17 = icmp eq i64 %6, 994
br i1 %17, label %29, label %18
18: ; preds = %1
%19 = add nuw nsw i64 %6, 2
%20 = mul nsw i32 %3, %4
%21 = mul nsw i32 %20, %2
%22 = mul nsw i32 %21, %13
%23 = add nuw i64 %6, 5
%24 = getelementptr inbounds [1000 x i32], [1000 x i32]* @__const.main.myBigNum, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = mul nsw i32 %22, %25
%27 = icmp sgt i32 %26, %16
%28 = select i1 %27, i32 %26, i32 %16
br label %1
29: ; preds = %1
%30 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %16)
%31 = tail call i32 (...) @getch()
ret i32 0
}