#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 i, n, Num, Odd[50] = {0}, brOdd = 0, Middle;
  scanf("%d", &n);
  do {
    scanf("%d", &Num);
    if (Num % 2 != 0) {
      Odd[brOdd] = Num;
      brOdd++;
    }
  } while (brOdd < n);
  Middle = n / 2;
  for (i = 0; i < Middle; i++) {
    printf("\n%d", Odd[i] - Odd[n - i - 1]);
  }
  if (n % 2 != 0) {
    printf("\n%d\n", Odd[Middle]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xe0(%rbp),%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1040 <memset@plt>
movl   $0x0,-0xe4(%rbp)
lea    0xe9b(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe8b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11b3 <main+0x83>
mov    -0x10(%rbp),%ecx
movslq -0xe4(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,4)
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    11b8 <main+0x88>
mov    -0xe4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     116f <main+0x3f>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0xe8(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xe8(%rbp),%eax
jge    1225 <main+0xf5>
movslq -0x8(%rbp),%rax
mov    -0xe0(%rbp,%rax,4),%esi
mov    -0xc(%rbp),%eax
sub    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
sub    -0xe0(%rbp,%rax,4),%esi
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11df <main+0xaf>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1253 <main+0x123>
movslq -0xe8(%rbp),%rax
mov    -0xe0(%rbp,%rax,4),%esi
lea    0xdb6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xe0,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0xd0(%rsp)
lea    0xe71(%rip),%r14
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
xor    %ebp,%ebp
lea    0xc(%rsp),%rbx
jmp    11b8 <main+0x98>
cs nopw 0x0(%rax,%rax,1)
mov    0x8(%rsp),%eax
cmp    %eax,%ebp
jge    11d7 <main+0xb7>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   $0x1,%al
je     11b0 <main+0x90>
movslq %ebp,%rbp
mov    %eax,0x10(%rsp,%rbp,4)
add    $0x1,%ebp
jmp    11b0 <main+0x90>
mov    %eax,%r14d
shr    $0x1f,%r14d
add    %eax,%r14d
sar    %r14d
cmp    $0x2,%eax
jl     1224 <main+0x104>
mov    %r14d,%r12d
mov    $0xffffffff,%ebx
xor    %ebp,%ebp
lea    0xe06(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    0x10(%rsp,%rbp,4),%esi
add    %ebx,%eax
cltq
sub    0x10(%rsp,%rax,4),%esi
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x1,%rbp
mov    0x8(%rsp),%eax
add    $0xffffffff,%ebx
cmp    %rbp,%r12
jne    1200 <main+0xe0>
test   $0x1,%al
je     123b <main+0x11b>
movslq %r14d,%rax
mov    0x10(%rsp,%rax,4),%esi
lea    0xdce(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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