#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;
scalar_t__ consegue(int, int, int, int, int, int);
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, int *, int *, int *, int *, int *, int *);
int main(void) {
  int r1, x1, y1, r2, x2, y2;
  while (scanf("%d %d %d %d %d %d\n", &r1, &x1, &y1, &r2, &x2, &y2) != EOF) {
    if (consegue(r1, x1, y1, r2, x2, y2)) {
      printf("RICO\n");
    } else {
      printf("MORTO\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1050 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     11bc <main+0x8c>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1040 <consegue@plt>
cmp    $0x0,%rax
je     11ab <main+0x7b>
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
jmp    11b7 <main+0x87>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xeb2(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
call   1050 <scanf@plt>
mov    0x2e75(%rip),%r14
cmp    (%r14),%rax
je     1202 <main+0xd2>
lea    0x24(%rsp),%r15
lea    0x20(%rsp),%r12
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%rbx
lea    0x14(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x24(%rsp),%edi
mov    0x20(%rsp),%esi
mov    0x1c(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    0x10(%rsp),%r9d
call   1040 <consegue@plt>
test   %rax,%rax
lea    0xe50(%rip),%rdi
lea    0xe43(%rip),%rax
cmove  %rax,%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xe17(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1050 <scanf@plt>
cmp    (%r14),%rax
jne    11a0 <main+0x70>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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