#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*/ puts(char *);
scalar_t__ scanf(char *, double *, double *, double *, double *, double *,
                 double *);
double sqrt(double);
int main() {
  double r1, x1, y1, r2, x2, y2;
  double distance;
  while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2) !=
         EOF) {
    distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
    if (r1 >= distance + r2) {
      puts("RICO");
    } else {
      puts("MORTO");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x38(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     11f0 <main+0xc0>
movsd  -0x18(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
subsd  -0x30(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm3
subsd  -0x38(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
addsd  -0x28(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     11df <main+0xaf>
lea    0xe43(%rip),%rdi
call   1030 <puts@plt>
jmp    11eb <main+0xbb>
lea    0xe37(%rip),%rdi
call   1030 <puts@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
lea    0xeba(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x28(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x10(%rsp),%r9
call   1040 <scanf@plt>
mov    0x2e75(%rip),%rcx
cmp    (%rcx),%rax
jne    1189 <main+0x59>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe78(%rip),%r14
lea    0x30(%rsp),%r15
lea    0x28(%rsp),%r12
lea    0x20(%rsp),%r13
lea    0x18(%rsp),%rbx
lea    0x10(%rsp),%rbp
jmp    11e1 <main+0xb1>
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1040 <scanf@plt>
mov    0x2e0c(%rip),%rcx
cmp    (%rcx),%rax
je     1178 <main+0x48>
movsd  0x28(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ucomisd 0xdf3(%rip),%xmm0
jb     1220 <main+0xf0>
sqrtsd %xmm0,%xmm0
jmp    1225 <main+0xf5>
cs nopw 0x0(%rax,%rax,1)
nop
call   1050 <sqrt@plt>
movsd  0x30(%rsp),%xmm1
addsd  0x18(%rsp),%xmm0
ucomisd %xmm0,%xmm1
lea    0xde9(%rip),%rdi
jb     11b0 <main+0x80>
lea    0xdd7(%rip),%rdi
jmp    11b0 <main+0x80>

LLVM IR (-O0):
@.str = [24 x i8] c"%lf %lf %lf %lf %lf %lf\00"
@EOF = global i64 0
@.str.1 = [5 x i8] c"RICO\00"
@.str.2 = [6 x i8] c"MORTO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %1
br label %9
9: ; preds = %38, %0
%10 = call i64 @scanf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4, double* %5, double* %6, double* %7)
%11 = load i64, i64* @EOF
%12 = icmp ne i64 %10, %11
br i1 %12, label %13, label %39
13: ; preds = %9
%14 = load double, double* %3
%15 = load double, double* %6
%16 = fsub double %14, %15
%17 = load double, double* %3
%18 = load double, double* %6
%19 = fsub double %17, %18
%20 = load double, double* %4
%21 = load double, double* %7
%22 = fsub double %20, %21
%23 = load double, double* %4
%24 = load double, double* %7
%25 = fsub double %23, %24
%26 = fmul double %22, %25
%27 = call double @llvm.fmuladd.f64(double %16, double %19, double %26)
%28 = call double @sqrt(double %27)
store double %28, double* %8
%29 = load double, double* %2
%30 = load double, double* %8
%31 = load double, double* %5
%32 = fadd double %30, %31
%33 = fcmp oge double %29, %32
br i1 %33, label %34, label %36
34: ; preds = %13
%35 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %38
36: ; preds = %13
%37 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
br label %9
39: ; preds = %9
ret i32 0
}

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