#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(void) {
  int num[31] = {0}, i, temp;
  for (i = 0; i < 28; i++) {
    scanf("%d\n", &temp);
    num[temp]++;
  }
  for (i = 1; i <= 30; i++) {
    if (num[i] == 0)
      printf("%d\n", i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x7c,%edx
call   1040 <memset@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x1c,-0x84(%rbp)
jge    11a2 <main+0x72>
lea    0xe90(%rip),%rdi
lea    -0x88(%rbp),%rsi
call   1050 <scanf@plt>
movslq -0x88(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    115c <main+0x2c>
movl   $0x1,-0x84(%rbp)
cmpl   $0x1e,-0x84(%rbp)
jg     11f6 <main+0xc6>
movslq -0x84(%rbp),%rax
cmpl   $0x0,-0x80(%rbp,%rax,4)
jne    11dd <main+0xad>
mov    -0x84(%rbp),%esi
lea    0xe28(%rip),%rdi
call   1030 <printf@plt>
jmp    11e2 <main+0xb2>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    11ac <main+0x7c>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x90,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x7c(%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)
mov    $0x1c,%ebp
lea    0xe9e(%rip),%r14
lea    0xc(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
addl   $0x1,0x10(%rsp,%rax,4)
add    $0xffffffff,%ebp
jne    1170 <main+0x50>
mov    $0x1,%ebx
lea    0xe6a(%rip),%r14
jmp    11aa <main+0x8a>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x1f,%rbx
je     11bd <main+0x9d>
cmpl   $0x0,0x10(%rsp,%rbx,4)
jne    11a0 <main+0x80>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    11a0 <main+0x80>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [31 x i32]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [31 x i32]* %2 to i8*
store i32 0, i32* %3
br label %6
6: ; preds = %16, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 28
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [31 x i32], [31 x i32]* %2, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = add nsw i32 %14, 1
store i32 %15, i32* %13
br label %16
16: ; preds = %9
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %6
19: ; preds = %6
store i32 1, i32* %3
br label %20
20: ; preds = %33, %19
%21 = load i32, i32* %3
%22 = icmp sle i32 %21, 30
br i1 %22, label %23, label %36
23: ; preds = %20
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [31 x i32], [31 x i32]* %2, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, i32* %3
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %29, %23
br label %33
33: ; preds = %32
%34 = load i32, i32* %3
%35 = add nsw i32 %34, 1
store i32 %35, i32* %3
br label %20
36: ; preds = %20
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [31 x i32]
%2 = alloca i32
%3 = bitcast [31 x i32]* %1 to i8*
%4 = bitcast i32* %2 to i8*
br label %5
5: ; preds = %0, %5
%6 = phi i32 [ 0, %0 ], [ %13, %5 ]
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [31 x i32], [31 x i32]* %1, i64 0, i64 %9
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %10
%13 = add nuw nsw i32 %6, 1
%14 = icmp eq i32 %13, 28
br i1 %14, label %15, label %5
15: ; preds = %5, %23
%16 = phi i64 [ %24, %23 ], [ 1, %5 ]
%17 = getelementptr inbounds [31 x i32], [31 x i32]* %1, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = trunc i64 %16 to i32
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %15, %20
%24 = add nuw nsw i64 %16, 1
%25 = icmp eq i64 %24, 31
br i1 %25, label %26, label %15
26: ; preds = %23
ret i32 0
}