#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *, ...);
int main(int argc, const char *argv[]) {
  int i, m, n, num;
  int t[100000];
  while (scanf("%d", &num) != EOF) {
    for (i = 0; i < num; i++) {
      scanf("%d", &t[i]);
    }
    scanf("%d%d", &m, &n);
    if (t[0] < m || t[0] > n) {
      i = 1;
      printf("%d", t[0]);
    } else {
      i = 2;
      printf("%d", t[1]);
    }
    for (; i < num; i++) {
      if (t[i] < m || t[i] > n)
        printf(" %d", t[i]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x61aa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec6(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    0x2e96(%rip),%rcx
cmp    (%rcx),%rax
je     1283 <main+0x163>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    119c <main+0x7c>
movslq -0x14(%rbp),%rax
lea    -0x61aa0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1162 <main+0x42>
lea    0xe5d(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x61aa0(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     11d0 <main+0xb0>
mov    -0x61aa0(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    11f0 <main+0xd0>
movl   $0x1,-0x14(%rbp)
mov    -0x61aa0(%rbp),%esi
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    120b <main+0xeb>
movl   $0x2,-0x14(%rbp)
mov    -0x61a9c(%rbp),%esi
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1210 <main+0xf0>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1270 <main+0x150>
movslq -0x14(%rbp),%rax
mov    -0x61aa0(%rbp,%rax,4),%eax
cmp    -0x18(%rbp),%eax
jl     1244 <main+0x124>
movslq -0x14(%rbp),%rax
mov    -0x61aa0(%rbp,%rax,4),%eax
cmp    -0x1c(%rbp),%eax
jle    125d <main+0x13d>
movslq -0x14(%rbp),%rax
mov    -0x61aa0(%rbp,%rax,4),%esi
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1262 <main+0x142>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1210 <main+0xf0>
lea    0xd92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1139 <main+0x19>
xor    %eax,%eax
add    $0x61aa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x61a98,%rsp
lea    0xebe(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x2e8d(%rip),%r15
cmp    (%r15),%rax
jne    1174 <main+0x44>
xor    %eax,%eax
add    $0x61a98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe8b(%rip),%rbx
lea    0xe83(%rip),%r13
lea    0x4(%rsp),%r12
jmp    11ac <main+0x7c>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmp    (%r15),%rax
je     1160 <main+0x30>
cmpl   $0x0,0x4(%rsp)
jle    11df <main+0xaf>
lea    0x10(%rsp),%r14
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
add    $0x4,%r14
cmp    %rax,%rbp
jl     11c0 <main+0x90>
lea    0xe1a(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
cmp    0xc(%rsp),%esi
setl   %cl
cmp    0x8(%rsp),%esi
setg   %al
or     %cl,%al
jne    1211 <main+0xe1>
mov    0x14(%rsp),%esi
movzbl %al,%eax
mov    $0x2,%ebp
sub    %eax,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    %eax,%ebp
jge    1190 <main+0x60>
mov    %ebp,%ebp
jmp    125a <main+0x12a>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
add    $0x1,%rbp
cmp    %ebp,%eax
jle    1190 <main+0x60>
mov    0x10(%rsp,%rbp,4),%esi
cmp    0xc(%rsp),%esi
jl     1240 <main+0x110>
cmp    0x8(%rsp),%esi
jle    124e <main+0x11e>
jmp    1240 <main+0x110>

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

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