#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 n, m, t, p, i, x[201];
  for (i = 0; i <= 200; ++i)
    x[i] = 0;
  scanf("%d%d", &n, &p);
  x[100] = -1;
  for (i = 1; i < n; ++i) {
    scanf("%d", &t);
    x[t - p + 100]--;
  }
  scanf("%d", &m);
  for (i = 0; i < m; ++i) {
    scanf("%d", &t);
    x[t - p + 100]++;
  }
  for (i = 0; i <= 200; ++i)
    if (x[i])
      printf("%d ", i + p - 100);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0xc8,-0x18(%rbp)
jg     1163 <main+0x43>
movslq -0x18(%rbp),%rax
movl   $0x0,-0x340(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1139 <main+0x19>
lea    0xe96(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0xffffffff,-0x1b0(%rbp)
ff ff ff
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11d2 <main+0xb2>
lea    0xe65(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
add    $0x64,%eax
cltq
mov    -0x340(%rbp,%rax,4),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x340(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    118a <main+0x6a>
lea    0xe29(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1233 <main+0x113>
lea    0xe04(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
add    $0x64,%eax
cltq
mov    -0x340(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x340(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11eb <main+0xcb>
movl   $0x0,-0x18(%rbp)
cmpl   $0xc8,-0x18(%rbp)
jg     1283 <main+0x163>
movslq -0x18(%rbp),%rax
cmpl   $0x0,-0x340(%rbp,%rax,4)
je     1270 <main+0x150>
mov    -0x18(%rbp),%esi
add    -0x14(%rbp),%esi
sub    $0x64,%esi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1275 <main+0x155>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    123a <main+0x11a>
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x340,%rsp
lea    0x10(%rsp),%rdi
mov    $0x324,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe9d(%rip),%rdi
lea    0xc(%rsp),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
movl   $0xffffffff,0x1a0(%rsp)
ff ff ff ff
cmpl   $0x2,0xc(%rsp)
jl     11c7 <main+0x87>
mov    $0x1,%ebp
lea    0xe72(%rip),%r14
lea    0x4(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
sub    (%rsp),%eax
add    $0x64,%eax
cltq
addl   $0xffffffff,0x10(%rsp,%rax,4)
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     11a0 <main+0x60>
lea    0xe34(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1217 <main+0xd7>
lea    0xe1a(%rip),%r14
lea    0x4(%rsp),%rbx
xor    %ebp,%ebp
nop
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
sub    (%rsp),%eax
add    $0x64,%eax
cltq
addl   $0x1,0x10(%rsp,%rax,4)
add    $0x1,%ebp
cmp    0x8(%rsp),%ebp
jl     11f0 <main+0xb0>
lea    0xde7(%rip),%rbx
xor    %ebp,%ebp
jmp    123d <main+0xfd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rbp
cmp    $0xc9,%rbp
je     1259 <main+0x119>
cmpl   $0x0,0x10(%rsp,%rbp,4)
je     1230 <main+0xf0>
mov    (%rsp),%eax
lea    (%rax,%rbp,1),%esi
add    $0xffffff9c,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1230 <main+0xf0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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