#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 *, char *);
scalar_t__ scanf(char *, int *, int *, int *, int *, int *);
int main() {
  int N, LA, LB, SA, SB;
  while (scanf("%d %d %d %d %d", &N, &LA, &LB, &SA, &SB) != EOF)
    printf("%s\n", (LA <= N && N <= LB && SA <= N && N <= SB ? "possivel"
                                                             : "impossivel"));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1040 <scanf@plt>
mov    0x2e92(%rip),%rcx
cmp    (%rcx),%rax
je     11c7 <main+0xa7>
mov    -0xc(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x19(%rbp)
jg     119e <main+0x7e>
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0x10(%rbp),%ecx
mov    %al,-0x19(%rbp)
jg     119e <main+0x7e>
mov    -0x14(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x19(%rbp)
jg     119e <main+0x7e>
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
setle  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%cl
lea    0xe6b(%rip),%rsi
lea    0xe66(%rip),%rax
test   $0x1,%cl
cmovne %rax,%rsi
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xecb(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x4(%rsp),%r9
call   1040 <scanf@plt>
mov    0x2e8e(%rip),%rcx
cmp    (%rcx),%rax
jne    1170 <main+0x50>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe9c(%rip),%r15
lea    0x14(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0xc(%rsp),%rbx
lea    0x8(%rsp),%rbp
lea    0x4(%rsp),%r14
jmp    11ef <main+0xcf>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %eax,0x8(%rsp)
cmovg  %r15,%rsi
cmp    0xc(%rsp),%eax
cmovg  %r15,%rsi
cmp    %eax,0x10(%rsp)
cmovg  %r15,%rsi
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
lea    0xe35(%rip),%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %r14,%r9
call   1040 <scanf@plt>
mov    0x2e02(%rip),%rcx
cmp    (%rcx),%rax
je     115f <main+0x3f>
mov    0x14(%rsp),%eax
lea    0xe1b(%rip),%rsi
cmp    0x4(%rsp),%eax
jle    11a0 <main+0x80>
mov    %r15,%rsi
jmp    11a0 <main+0x80>

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

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