#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*/ count_elements(int, int, int *, int *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, m;
  int count_a[100] = {0};
  int count_b[100] = {0};
  int Xmin = 10000101;
  scanf("%d", &n);
  int list_a[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &list_a[i]);
    if (list_a[i] < Xmin)
      Xmin = list_a[i];
  }
  scanf("%d", &m);
  int list_b[m];
  for (int i = 0; i < m; i++) {
    scanf("%d", &list_b[i]);
    if (list_b[i] < Xmin)
      Xmin = list_b[i];
  }
  count_elements(n, Xmin, list_a, count_a);
  count_elements(m, Xmin, list_b, count_b);
  for (int i = 0; i < 100; i++) {
    if (count_a[i] != count_b[i]) {
      printf("%d ", i + Xmin);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x380,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    %esi,-0x374(%rbp)
mov    $0x190,%edx
mov    %rdx,-0x370(%rbp)
call   1050 <memset@plt>
mov    -0x374(%rbp),%esi
mov    -0x370(%rbp),%rdx
lea    -0x330(%rbp),%rdi
call   1050 <memset@plt>
movl   $0x9896e5,-0x334(%rbp)
lea    0xe64(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x340(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x368(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x348(%rbp)
movl   $0x0,-0x34c(%rbp)
mov    -0x34c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    125c <main+0x11c>
mov    -0x368(%rbp),%rsi
movslq -0x34c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdf6(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x368(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x334(%rbp),%eax
jge    1243 <main+0x103>
mov    -0x368(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x334(%rbp)
jmp    1248 <main+0x108>
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    11df <main+0x9f>
lea    0xd9d(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0xc(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x380(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x358(%rbp)
movl   $0x0,-0x35c(%rbp)
mov    -0x35c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1319 <main+0x1d9>
mov    -0x380(%rbp),%rsi
movslq -0x35c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xd39(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x380(%rbp),%rax
movslq -0x35c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x334(%rbp),%eax
jge    1300 <main+0x1c0>
mov    -0x380(%rbp),%rax
movslq -0x35c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x334(%rbp)
jmp    1305 <main+0x1c5>
mov    -0x35c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x35c(%rbp)
jmp    129c <main+0x15c>
mov    -0x368(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0x334(%rbp),%esi
lea    -0x1a0(%rbp),%rcx
call   1030 <count_elements@plt>
mov    -0x380(%rbp),%rdx
mov    -0xc(%rbp),%edi
mov    -0x334(%rbp),%esi
lea    -0x330(%rbp),%rcx
call   1030 <count_elements@plt>
movl   $0x0,-0x360(%rbp)
cmpl   $0x64,-0x360(%rbp)
jge    13bb <main+0x27b>
movslq -0x360(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
movslq -0x360(%rbp),%rcx
cmp    -0x330(%rbp,%rcx,4),%eax
je     13a2 <main+0x262>
mov    -0x360(%rbp),%esi
add    -0x334(%rbp),%esi
lea    0xc66(%rip),%rdi
call   1040 <printf@plt>
jmp    13a7 <main+0x267>
mov    -0x360(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x360(%rbp)
jmp    135b <main+0x21b>
movl   $0x0,-0x4(%rbp)
mov    -0x340(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
lea    -0x360(%rbp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    -0x1d0(%rbp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe7f(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1060 <scanf@plt>
mov    %rsp,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%rbx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmpl   $0x0,-0x2c(%rbp)
mov    %rbx,-0x38(%rbp)
mov    $0x9896e5,%r13d
jle    11e5 <main+0xa5>
xor    %r12d,%r12d
lea    0xe40(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    (%rbx),%eax
cmp    %r13d,%eax
cmovl  %eax,%r13d
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r12
jl     11c0 <main+0x80>
lea    0xe14(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x30(%rbp),%eax
mov    %rsp,%r15
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r15
mov    %r15,%rsp
test   %eax,%eax
jle    1245 <main+0x105>
xor    %r14d,%r14d
lea    0xde5(%rip),%r12
mov    %r15,%rbx
xchg   %ax,%ax
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    (%rbx),%eax
cmp    %r13d,%eax
cmovl  %eax,%r13d
add    $0x1,%r14
movslq -0x30(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r14
jl     1220 <main+0xe0>
mov    -0x2c(%rbp),%edi
lea    -0x360(%rbp),%rcx
mov    %r13d,%esi
mov    -0x38(%rbp),%rdx
call   1030 <count_elements@plt>
mov    -0x30(%rbp),%edi
lea    -0x1d0(%rbp),%rcx
mov    %r13d,%esi
mov    %r15,%rdx
call   1030 <count_elements@plt>
mov    %r13d,%r15d
xor    %ebx,%ebx
lea    0xd87(%rip),%r14
jmp    128a <main+0x14a>
xchg   %ax,%ax
add    $0x1,%rbx
cmp    $0x64,%rbx
je     12a8 <main+0x168>
mov    -0x360(%rbp,%rbx,4),%eax
cmp    -0x1d0(%rbp,%rbx,4),%eax
je     1280 <main+0x140>
lea    (%r15,%rbx,1),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
jmp    1280 <main+0x140>
mov    -0x40(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%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"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100 x i32]
%5 = alloca [100 x i32]
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = bitcast [100 x i32]* %4 to i8*
%14 = bitcast [100 x i32]* %5 to i8*
store i32 10000101, i32* %6
%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 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %7
%19 = alloca i32, i64 %17
store i64 %17, i64* %8
store i32 0, i32* %9
br label %20
20: ; preds = %41, %0
%21 = load i32, i32* %9
%22 = load i32, i32* %2
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %44
24: ; preds = %20
%25 = load i32, i32* %9
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, i32* %19, i64 %26
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %27)
%29 = load i32, i32* %9
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, i32* %19, i64 %30
%32 = load i32, i32* %31
%33 = load i32, i32* %6
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %40
35: ; preds = %24
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, i32* %19, i64 %37
%39 = load i32, i32* %38
store i32 %39, i32* %6
br label %40
40: ; preds = %35, %24
br label %41
41: ; preds = %40
%42 = load i32, i32* %9
%43 = add nsw i32 %42, 1
store i32 %43, i32* %9
br label %20
44: ; preds = %20
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%46 = load i32, i32* %3
%47 = zext i32 %46 to i64
%48 = alloca i32, i64 %47
store i64 %47, i64* %10
store i32 0, i32* %11
br label %49
49: ; preds = %70, %44
%50 = load i32, i32* %11
%51 = load i32, i32* %3
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %73
53: ; preds = %49
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, i32* %48, i64 %55
%57 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %56)
%58 = load i32, i32* %11
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, i32* %48, i64 %59
%61 = load i32, i32* %60
%62 = load i32, i32* %6
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %69
64: ; preds = %53
%65 = load i32, i32* %11
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, i32* %48, i64 %66
%68 = load i32, i32* %67
store i32 %68, i32* %6
br label %69
69: ; preds = %64, %53
br label %70
70: ; preds = %69
%71 = load i32, i32* %11
%72 = add nsw i32 %71, 1
store i32 %72, i32* %11
br label %49
73: ; preds = %49
%74 = load i32, i32* %2
%75 = load i32, i32* %6
%76 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
%77 = call i32 @count_elements(i32 %74, i32 %75, i32* %19, i32* %76)
%78 = load i32, i32* %3
%79 = load i32, i32* %6
%80 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%81 = call i32 @count_elements(i32 %78, i32 %79, i32* %48, i32* %80)
store i32 0, i32* %12
br label %82
82: ; preds = %101, %73
%83 = load i32, i32* %12
%84 = icmp slt i32 %83, 100
br i1 %84, label %85, label %104
85: ; preds = %82
%86 = load i32, i32* %12
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = load i32, i32* %12
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 %91
%93 = load i32, i32* %92
%94 = icmp ne i32 %89, %93
br i1 %94, label %95, label %100
95: ; preds = %85
%96 = load i32, i32* %12
%97 = load i32, i32* %6
%98 = add nsw i32 %96, %97
%99 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %98)
br label %100
100: ; preds = %95, %85
br label %101
101: ; preds = %100
%102 = load i32, i32* %12
%103 = add nsw i32 %102, 1
store i32 %103, i32* %12
br label %82
104: ; preds = %82
store i32 0, i32* %1
%105 = load i8*, i8** %7
%106 = load i32, i32* %1
ret i32 %106
}

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