#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, b, t;
  int mas[100];
  scanf("%d", &n);
  for (i = 0, b = 0; i < n;) {
    scanf("%d", &t);
    if (t % 2 != 0) {
      mas[i] = t;
      i++;
      b++;
    }
  }
  for (i = 0; i < n / 2; i++)
    printf("%d\n", mas[i] - mas[n - i - 1]);
  printf("%d\n", mas[b / 2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a5 <main+0x85>
lea    0xe9d(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11a0 <main+0x80>
mov    -0x14(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x1b0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1150 <main+0x30>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x1b4(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x1b4(%rbp),%eax
cmp    %ecx,%eax
jge    1207 <main+0xe7>
movslq -0x8(%rbp),%rax
mov    -0x1b0(%rbp,%rax,4),%esi
mov    -0xc(%rbp),%eax
sub    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
sub    -0x1b0(%rbp,%rax,4),%esi
lea    0xe0f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11ac <main+0x8c>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cltq
mov    -0x1b0(%rbp,%rax,4),%esi
lea    0xde1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x1a8,%rsp
lea    0xecc(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    11d2 <main+0xb2>
xor    %r15d,%r15d
lea    0xead(%rip),%r14
lea    0xc(%rsp),%rbx
xor    %ebp,%ebp
jmp    1168 <main+0x48>
nopl   0x0(%rax)
mov    0x8(%rsp),%eax
cmp    %eax,%ebp
jge    118b <main+0x6b>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   $0x1,%al
je     1160 <main+0x40>
movslq %ebp,%rbp
mov    %eax,0x10(%rsp,%rbp,4)
add    $0x1,%ebp
add    $0x1,%r15d
jmp    1160 <main+0x40>
cmp    $0x2,%eax
jl     11d5 <main+0xb5>
mov    $0xffffffff,%ebx
xor    %ebp,%ebp
lea    0xe65(%rip),%r14
xchg   %ax,%ax
mov    0x10(%rsp,%rbp,4),%esi
add    %ebx,%eax
cltq
sub    0x10(%rsp,%rax,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbp
mov    0x8(%rsp),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
movslq %ecx,%rcx
add    $0xffffffff,%ebx
cmp    %rcx,%rbp
jl     11a0 <main+0x80>
jmp    11d5 <main+0xb5>
xor    %r15d,%r15d
mov    %r15d,%eax
shr    $0x1f,%eax
add    %r15d,%eax
sar    %eax
cltq
mov    0x10(%rsp,%rax,4),%esi
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
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 i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [100 x i32]
store i32 0, i32* %1
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 0, i32* %2
store i32 0, i32* %4
br label %8
8: ; preds = %26, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %27
12: ; preds = %8
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%14 = load i32, i32* %5
%15 = srem i32 %14, 2
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %26
17: ; preds = %12
%18 = load i32, i32* %5
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %20
store i32 %18, i32* %21
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %26
26: ; preds = %17, %12
br label %8
27: ; preds = %8
store i32 0, i32* %2
br label %28
28: ; preds = %47, %27
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = sdiv i32 %30, 2
%32 = icmp slt i32 %29, %31
br i1 %32, label %33, label %50
33: ; preds = %28
%34 = load i32, i32* %2
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = load i32, i32* %3
%39 = load i32, i32* %2
%40 = sub nsw i32 %38, %39
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = sub nsw i32 %37, %44
%46 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %45)
br label %47
47: ; preds = %33
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %28
50: ; preds = %28
%51 = load i32, i32* %4
%52 = sdiv i32 %51, 2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %55)
ret i32 0
}

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