#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, int, int, int, int, int, int, int, int,
                          int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, a[n];
  int count = 0;
  int i;
  scanf("%d", &n);
  for (i = 0; i < n; i = i + 1) {
    scanf("%d", &a[i]);
  }
  i = count - 1;
  for (i = n - 1; i >= 0; i--) {
    printf("%d\n%d %d\n%d% d% d\n%d %d %d %d\n", a[0], a[0], a[1], a[0], a[1],
           a[2], a[0], a[1], a[2], a[3]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
movl   $0x0,-0x14(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xe99(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11ac <main+0x8c>
mov    -0x38(%rbp),%rsi
movslq -0x30(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe67(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1177 <main+0x57>
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jl     1223 <main+0x103>
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    (%rax),%edx
mov    0x4(%rax),%ecx
mov    (%rax),%r8d
mov    0x4(%rax),%r9d
mov    0x8(%rax),%r14d
mov    (%rax),%ebx
mov    0x4(%rax),%r11d
mov    0x8(%rax),%r10d
mov    0xc(%rax),%eax
lea    0xe11(%rip),%rdi
sub    $0x30,%rsp
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1030 <printf@plt>
add    $0x30,%rsp
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
jmp    11be <main+0x9e>
movl   $0x0,-0x14(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x14(%rbp),%eax
lea    -0x10(%rbp),%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsp,%r15
lea    0xec9(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    11c6 <main+0xa6>
mov    %rsp,%r13
xor    %ebx,%ebx
lea    0xeac(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%r12
add    $0x4,%r13
cmp    %r12,%rbx
jl     1160 <main+0x40>
test   %r12d,%r12d
jle    11c6 <main+0xa6>
add    $0x1,%r12d
lea    0xe76(%rip),%r14
nopl   (%rax)
mov    (%rsp),%edx
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%eax
mov    0xc(%rsp),%ebx
sub    $0x8,%rsp
mov    %r14,%rdi
mov    %edx,%esi
mov    %edx,%r8d
mov    %ecx,%r9d
push   %rbx
push   %rax
push   %rcx
push   %rdx
push   %rax
call   1030 <printf@plt>
add    $0x30,%rsp
add    $0xffffffff,%r12d
cmp    $0x1,%r12d
ja     1190 <main+0x70>
mov    %r15,%rsp
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

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