#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;
double abs(long double);
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, ...);
int main() {
  double s[200];
  double a, b, c;
  long double aa, bb;
  char sa[100], sb[100], sc[100];
  s['t'] = 45.72 * 18 * 1 * 1.5;
  s['n'] = 0.4572 * 18 * 1 * 1.5;
  s['c'] = 0.4572 * 45.72 * 1 * 1.5;
  s['b'] = 0.4572 * 45.72 * 18 * 1.5;
  s['e'] = 0.4572 * 45.72 * 18 * 1;
  while (scanf("%lf", &a) != EOF) {
    scanf("%s\n%lf %s\n%lf %s\n\n", sa, &b, sb, &c, sc);
    aa = a * s[sa[2]];
    bb = b * s[sb[2]];
    if (abs(aa - bb) < 0.0000001)
      printf("Spin\n\n");
    else if (abs(aa / 6.0 - bb) < 0.0000001)
      printf("Excellent\n\n");
    else
      printf("Neither\n\n");
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x800,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xed6(%rip),%xmm0
movsd  %xmm0,-0x2b0(%rbp)
ff
movsd  0xebe(%rip),%xmm0
movsd  %xmm0,-0x2e0(%rbp)
ff
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x338(%rbp)
ff
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,-0x340(%rbp)
ff
movsd  0xe76(%rip),%xmm0
movsd  %xmm0,-0x328(%rbp)
ff
lea    0xe9b(%rip),%rdi
lea    -0x658(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    0x2e3a(%rip),%rcx
cmp    (%rcx),%rax
je     12e4 <main+0x1b4>
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
lea    -0x700(%rbp),%rsi
lea    -0x660(%rbp),%rdx
lea    -0x770(%rbp),%rcx
lea    -0x668(%rbp),%r8
lea    -0x7e0(%rbp),%r9
call   1050 <scanf@plt>
movsd  -0x658(%rbp),%xmm0
ff
movsbq -0x6fe(%rbp),%rax
ff
movsd  -0x650(%rbp,%rax,8),%xmm1
ff ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x7e8(%rbp)
ff
fldl   -0x7e8(%rbp)
fstpt  -0x680(%rbp)
movsd  -0x660(%rbp),%xmm0
ff
movsbq -0x76e(%rbp),%rax
ff
movsd  -0x650(%rbp,%rax,8),%xmm1
ff ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x7f0(%rbp)
ff
fldl   -0x7f0(%rbp)
fstpt  -0x690(%rbp)
fldt   -0x680(%rbp)
fldt   -0x690(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xdbb(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1288 <main+0x158>
lea    0xdcd(%rip),%rdi
call   1040 <printf@plt>
jmp    12df <main+0x1af>
fldt   -0x680(%rbp)
flds   0xd9c(%rip)
fdivrp %st,%st(1)
fldt   -0x690(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xd75(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12ce <main+0x19e>
lea    0xd8e(%rip),%rdi
call   1040 <printf@plt>
jmp    12da <main+0x1aa>
lea    0xd89(%rip),%rdi
call   1040 <printf@plt>
jmp    12df <main+0x1af>
jmp    1192 <main+0x62>
xor    %eax,%eax
add    $0x800,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x7e8,%rsp
movabs $0x409349c28f5c28f6,%rax
49 93 40
mov    %rax,0x540(%rsp)
movabs $0x4028b05532617c1c,%rax
b0 28 40
mov    %rax,0x510(%rsp)
movapd 0xe93(%rip),%xmm0
movapd %xmm0,0x4b0(%rsp)
movabs $0x4077841df3300de5,%rax
84 77 40
mov    %rax,0x4c8(%rsp)
lea    0xe8d(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x2e46(%rip),%rcx
cmp    (%rcx),%rax
jne    11bb <main+0x8b>
xor    %eax,%eax
add    $0x7e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x50(%rsp),%r13
lea    0x48(%rsp),%rbx
lea    0x130(%rsp),%rbp
lea    0xe73(%rip),%r12
lea    0xe41(%rip),%r14
lea    0x10(%rsp),%r15
jmp    120e <main+0xde>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x2ddf(%rip),%rcx
cmp    (%rcx),%rax
je     11a7 <main+0x77>
lea    0xe0b(%rip),%rdi
lea    0xc0(%rsp),%rsi
lea    0x28(%rsp),%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsbq 0xc2(%rsp),%rax
mulsd  0x1a0(%rsp,%rax,8),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x28(%rsp),%xmm0
movsbq 0x52(%rsp),%rax
mulsd  0x1a0(%rsp,%rax,8),%xmm0
fldl   0x20(%rsp)
movsd  %xmm0,0x18(%rsp)
fldl   0x18(%rsp)
fld    %st(1)
fstpt  0x3c(%rsp)
fld    %st(0)
fstpt  0x30(%rsp)
fsubrp %st,%st(1)
fstpt  (%rsp)
call   1040 <abs@plt>
movsd  0xd7f(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    %r12,%rdi
ja     11f0 <main+0xc0>
fldt   0x3c(%rsp)
fdivs  0xd70(%rip)
fldt   0x30(%rsp)
fsubrp %st,%st(1)
fstpt  (%rsp)
call   1040 <abs@plt>
movsd  0xd52(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xd6a(%rip),%rdi
lea    0xd6c(%rip),%rax
cmova  %rax,%rdi
jmp    11f0 <main+0xc0>

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@EOF = global i64 0
@.str.1 = [19 x i8] c"%s\0A%lf %s\0A%lf %s\0A\0A\00"
@.str.2 = [7 x i8] c"Spin\0A\0A\00"
@.str.3 = [12 x i8] c"Excellent\0A\0A\00"
@.str.4 = [10 x i8] c"Neither\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x double]
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca x86_fp80
%7 = alloca x86_fp80
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
%10 = alloca [100 x i8]
store i32 0, i32* %1
%11 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 116
store double 1.234440e+03, double* %11
%12 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 110
store double 1.234440e+01, double* %12
%13 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 99
store double 0x403F5AD2999567DC, double* %13
%14 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 98
store double 0x4081A31676640A6C, double* %14
%15 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 101
store double 0x4077841DF3300DE5, double* %15
br label %16
16: ; preds = %60, %0
%17 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %3)
%18 = load i64, i64* @EOF
%19 = icmp ne i64 %17, %18
br i1 %19, label %20, label %61
20: ; preds = %16
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%24 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %21, double* %4, i8* %22, double* %5, i8* %23)
%25 = load double, double* %3
%26 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 2
%27 = load i8, i8* %26
%28 = sext i8 %27 to i64
%29 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %28
%30 = load double, double* %29
%31 = fmul double %25, %30
%32 = fpext double %31 to x86_fp80
store x86_fp80 %32, x86_fp80* %6
%33 = load double, double* %4
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 2
%35 = load i8, i8* %34
%36 = sext i8 %35 to i64
%37 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %36
%38 = load double, double* %37
%39 = fmul double %33, %38
%40 = fpext double %39 to x86_fp80
store x86_fp80 %40, x86_fp80* %7
%41 = load x86_fp80, x86_fp80* %6
%42 = load x86_fp80, x86_fp80* %7
%43 = fsub x86_fp80 %41, %42
%44 = call double @abs(x86_fp80 %43)
%45 = fcmp olt double %44, 0x3E7AD7F29ABCAF48
br i1 %45, label %46, label %48
46: ; preds = %20
%47 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %60
48: ; preds = %20
%49 = load x86_fp80, x86_fp80* %6
%50 = fdiv x86_fp80 %49, 0xK4001C000000000000000
%51 = load x86_fp80, x86_fp80* %7
%52 = fsub x86_fp80 %50, %51
%53 = call double @abs(x86_fp80 %52)
%54 = fcmp olt double %53, 0x3E7AD7F29ABCAF48
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %59
57: ; preds = %48
%58 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %59
59: ; preds = %57, %55
br label %60
60: ; preds = %59, %46
br label %16
61: ; preds = %16
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@EOF = global i64 0
@.str.1 = [19 x i8] c"%s\0A%lf %s\0A%lf %s\0A\0A\00"
@str = [9 x i8] c"Neither\0A\00"
@str.5 = [11 x i8] c"Excellent\0A\00"
@str.6 = [6 x i8] c"Spin\0A\00"
define i32 @main() {
%1 = alloca [200 x double]
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
%8 = bitcast [200 x double]* %1 to i8*
%9 = bitcast double* %2 to i8*
%10 = bitcast double* %3 to i8*
%11 = bitcast double* %4 to i8*
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 116
store double 1.234440e+03, double* %15
%16 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 110
store double 1.234440e+01, double* %16
%17 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 98
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 0x4081A31676640A6C, double 0x403F5AD2999567DC>, <2 x double>* %18
%19 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 101
store double 0x4077841DF3300DE5, double* %19
%20 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%21 = load i64, i64* @EOF
%22 = icmp eq i64 %20, %21
br i1 %22, label %57, label %23
23: ; preds = %0
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 2
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 2
br label %26
26: ; preds = %23, %51
%27 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %12, double* %3, i8* %13, double* %4, i8* %14)
%28 = load double, double* %2
%29 = load i8, i8* %24
%30 = sext i8 %29 to i64
%31 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 %30
%32 = load double, double* %31
%33 = fmul double %28, %32
%34 = fpext double %33 to x86_fp80
%35 = load double, double* %3
%36 = load i8, i8* %25
%37 = sext i8 %36 to i64
%38 = getelementptr inbounds [200 x double], [200 x double]* %1, i64 0, i64 %37
%39 = load double, double* %38
%40 = fmul double %35, %39
%41 = fpext double %40 to x86_fp80
%42 = fsub x86_fp80 %34, %41
%43 = call double @abs(x86_fp80 %42)
%44 = fcmp olt double %43, 0x3E7AD7F29ABCAF48
br i1 %44, label %51, label %45
45: ; preds = %26
%46 = fdiv x86_fp80 %34, 0xK4001C000000000000000
%47 = fsub x86_fp80 %46, %41
%48 = call double @abs(x86_fp80 %47)
%49 = fcmp olt double %48, 0x3E7AD7F29ABCAF48
%50 = select i1 %49, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0)
br label %51
51: ; preds = %45, %26
%52 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.6, i64 0, i64 0), %26 ], [ %50, %45 ]
%53 = call i32 @puts(i8* dereferenceable(1) %52)
%54 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%55 = load i64, i64* @EOF
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %26
57: ; preds = %51, %0
ret i32 0
}