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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x27760,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x27750(%rbp),%rdi
xor    %esi,%esi
mov    $0x27744,%edx
call   1040 <memset@plt>
lea    0xea4(%rip),%rdi
lea    -0x27760(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x1,-0x27758(%rbp)
mov    -0x27758(%rbp),%eax
cmp    -0x27760(%rbp),%eax
jge    1230 <main+0x100>
movl   $0x0,-0x2775c(%rbp)
mov    -0x2775c(%rbp),%eax
cmp    -0x27758(%rbp),%eax
jge    1217 <main+0xe7>
lea    0xe59(%rip),%rdi
lea    -0x27754(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x27754(%rbp),%edx
movslq -0x27758(%rbp),%rcx
lea    -0x27750(%rbp),%rax
imul   $0x324,%rcx,%rcx
add    %rcx,%rax
movslq -0x2775c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x27754(%rbp),%edx
movslq -0x2775c(%rbp),%rcx
lea    -0x27750(%rbp),%rax
imul   $0x324,%rcx,%rcx
add    %rcx,%rax
movslq -0x27758(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x2775c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2775c(%rbp)
jmp    118e <main+0x5e>
jmp    121c <main+0xec>
mov    -0x27758(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27758(%rbp)
jmp    1172 <main+0x42>
movl   $0x0,-0x27758(%rbp)
mov    -0x27758(%rbp),%eax
cmp    -0x27760(%rbp),%eax
jge    12ce <main+0x19e>
movl   $0x0,-0x2775c(%rbp)
mov    -0x2775c(%rbp),%eax
cmp    -0x27760(%rbp),%eax
jge    12ac <main+0x17c>
movslq -0x27758(%rbp),%rcx
lea    -0x27750(%rbp),%rax
imul   $0x324,%rcx,%rcx
add    %rcx,%rax
movslq -0x2775c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2775c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2775c(%rbp)
jmp    1256 <main+0x126>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x27758(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27758(%rbp)
jmp    123a <main+0x10a>
xor    %eax,%eax
add    $0x27760,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x27758,%rsp
lea    0x10(%rsp),%rbx
mov    $0x27744,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe94(%rip),%rdi
mov    %rsp,%rsi
call   1060 <scanf@plt>
mov    (%rsp),%eax
cmp    $0x2,%eax
jl     11f9 <main+0xb9>
lea    0x334(%rsp),%rbx
lea    0x14(%rsp),%r13
mov    $0x1,%ebp
lea    0xe6b(%rip),%r14
lea    0x4(%rsp),%r12
nopw   0x0(%rax,%rax,1)
mov    %r13,0x8(%rsp)
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,(%rbx,%r15,4)
mov    %eax,0x0(%r13)
add    $0x1,%r15
add    $0x324,%r13
cmp    %r15,%rbp
jne    11b0 <main+0x70>
add    $0x1,%rbp
movslq (%rsp),%rax
add    $0x324,%rbx
mov    0x8(%rsp),%r13
add    $0x4,%r13
cmp    %rax,%rbp
jl     11a0 <main+0x60>
lea    0x10(%rsp),%rbx
test   %eax,%eax
jle    125c <main+0x11c>
lea    0xdff(%rip),%r14
xor    %r15d,%r15d
jmp    122e <main+0xee>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq (%rsp),%rax
add    $0x324,%rbx
cmp    %rax,%r15
jge    125c <main+0x11c>
test   %eax,%eax
jle    1210 <main+0xd0>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbp
movslq (%rsp),%rax
cmp    %rax,%rbp
jl     1240 <main+0x100>
jmp    1210 <main+0xd0>
xor    %eax,%eax
add    $0x27758,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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