#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int numCount;
  int arr[1024];
  int readNum;
  int i = 0;
  while ((numCount <= 0) || (numCount > 1024)) {
    scanf("%d", &numCount);
  }
  for (i = 0; i < numCount; i++) {
    scanf("%d", &readNum);
    if (readNum % 2 == 0) {
      i--;
    } else {
      arr[i] = readNum;
    }
  }
  for (i = 0; i < (numCount + 1) / 2; i++) {
    if (arr[i] == arr[(numCount - 1) - i]) {
      printf("%d\n", arr[i]);
    } else {
      printf("%d\n", arr[i] - arr[(numCount - 1) - i]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1020,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1018(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x1019(%rbp)
jle    115e <main+0x3e>
cmpl   $0x400,-0x8(%rbp)
setg   %al
mov    %al,-0x1019(%rbp)
mov    -0x1019(%rbp),%al
test   $0x1,%al
jne    1171 <main+0x51>
jmp    1186 <main+0x66>
lea    0xe88(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
jmp    113c <main+0x1c>
movl   $0x0,-0x1018(%rbp)
mov    -0x1018(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    120a <main+0xea>
lea    0xe5a(%rip),%rdi
lea    -0x1014(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x1014(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11dd <main+0xbd>
mov    -0x1018(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1018(%rbp)
jmp    11f1 <main+0xd1>
mov    -0x1014(%rbp),%ecx
movslq -0x1018(%rbp),%rax
mov    %ecx,-0x1010(%rbp,%rax,4)
jmp    11f6 <main+0xd6>
mov    -0x1018(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1018(%rbp)
jmp    1190 <main+0x70>
movl   $0x0,-0x1018(%rbp)
mov    -0x1018(%rbp),%eax
mov    %eax,-0x1020(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x1020(%rbp),%eax
cmp    %ecx,%eax
jge    12cf <main+0x1af>
movslq -0x1018(%rbp),%rax
mov    -0x1010(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
sub    -0x1018(%rbp),%ecx
movslq %ecx,%rcx
cmp    -0x1010(%rbp,%rcx,4),%eax
jne    1287 <main+0x167>
movslq -0x1018(%rbp),%rax
mov    -0x1010(%rbp,%rax,4),%esi
lea    0xd86(%rip),%rdi
call   1030 <printf@plt>
jmp    12b6 <main+0x196>
movslq -0x1018(%rbp),%rax
mov    -0x1010(%rbp,%rax,4),%esi
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
sub    -0x1018(%rbp),%eax
cltq
sub    -0x1010(%rbp,%rax,4),%esi
lea    0xd52(%rip),%rdi
call   1030 <printf@plt>
jmp    12bb <main+0x19b>
mov    -0x1018(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1018(%rbp)
jmp    1214 <main+0xf4>
xor    %eax,%eax
add    $0x1020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}