#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 A[6], B[6], i = 0, compativel = 1;
  while (i < 5) {
    scanf("%d", &A[i]);
    i++;
  }
  i = 0;
  while (i < 5) {
    scanf("%d", &B[i]);
    if (A[i] == B[i])
      compativel = 0;
    i++;
  }
  if (compativel)
    printf("Y\n");
  else
    printf("N\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x1,-0x48(%rbp)
cmpl   $0x5,-0x44(%rbp)
jge    1170 <main+0x50>
movslq -0x44(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xea3(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    113d <main+0x1d>
movl   $0x0,-0x44(%rbp)
cmpl   $0x5,-0x44(%rbp)
jge    11c7 <main+0xa7>
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe69(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x44(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
movslq -0x44(%rbp),%rcx
cmp    -0x40(%rbp,%rcx,4),%eax
jne    11b9 <main+0x99>
movl   $0x0,-0x48(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1177 <main+0x57>
cmpl   $0x0,-0x48(%rbp)
je     11e2 <main+0xc2>
lea    0xe2b(%rip),%rdi
call   1030 <printf@plt>
jmp    11ee <main+0xce>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
lea    0xecd(%rip),%r14
lea    0x20(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %rsp,%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    0x20(%rsp),%eax
cmp    (%rsp),%eax
lea    0x4(%rsp),%rsi
lea    0xe71(%rip),%r15
lea    0xe6c(%rip),%rbx
cmove  %r15,%rbx
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
movss  0x24(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
movss  0x4(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
movss  0x28(%rsp),%xmm0
unpcklps 0x40(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
movss  0x8(%rsp),%xmm0
unpcklps 0x50(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
movss  0x2c(%rsp),%xmm0
movaps %xmm0,0x60(%rsp)
movss  0xc(%rsp),%xmm0
movaps %xmm0,0x70(%rsp)
mov    %r14,%rdi
call   1040 <scanf@plt>
movd   0x30(%rsp),%xmm0
punpckldq 0x60(%rsp),%xmm0
punpcklqdq 0x40(%rsp),%xmm0
movd   0x10(%rsp),%xmm1
punpckldq 0x70(%rsp),%xmm1
punpcklqdq 0x50(%rsp),%xmm1
pcmpeqd %xmm0,%xmm1
pslld  $0x1f,%xmm1
movmskps %xmm1,%eax
test   %eax,%eax
cmovne %r15,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [2 x i8] c"N\00"
@str.3 = [2 x i8] c"Y\00"
define i32 @main() {
%1 = alloca [6 x i32]
%2 = alloca [6 x i32]
%3 = bitcast [6 x i32]* %1 to i8*
%4 = bitcast [6 x i32]* %2 to i8*
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 0
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
%17 = load i32, i32* %5
%18 = load i32, i32* %15
%19 = icmp eq i32 %17, %18
%20 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 1
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %20)
%22 = load i32, i32* %7
%23 = load i32, i32* %20
%24 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 2
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %24)
%26 = load i32, i32* %9
%27 = load i32, i32* %24
%28 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 3
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %28)
%30 = load i32, i32* %11
%31 = load i32, i32* %28
%32 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 4
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %32)
%34 = load i32, i32* %13
%35 = load i32, i32* %32
%36 = insertelement <4 x i32> poison, i32 %34, i64 0
%37 = insertelement <4 x i32> %36, i32 %30, i64 1
%38 = insertelement <4 x i32> %37, i32 %26, i64 2
%39 = insertelement <4 x i32> %38, i32 %22, i64 3
%40 = insertelement <4 x i32> poison, i32 %35, i64 0
%41 = insertelement <4 x i32> %40, i32 %31, i64 1
%42 = insertelement <4 x i32> %41, i32 %27, i64 2
%43 = insertelement <4 x i32> %42, i32 %23, i64 3
%44 = icmp eq <4 x i32> %39, %43
%45 = freeze <4 x i1> %44
%46 = bitcast <4 x i1> %45 to i4
%47 = icmp ne i4 %46, 0
%48 = select i1 %47, i1 true, i1 %19
%49 = select i1 %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0)
%50 = call i32 @puts(i8* dereferenceable(1) %49)
ret i32 0
}