#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 scanf(char *, int *, int *, int *);
scalar_t__ sqrt(int);
int main() {
  int D, VF, VG, TW = 12;
  double TF, TG, X;
  while (scanf("%d %d %d", &D, &VF, &VG) == 3) {
    X = (double)sqrt((TW * TW + (D * D)));
    TF = (double)TW / VF;
    TG = (double)(X / VG);
    if (TG > TF)
      printf("N\n");
    else
      printf("S\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xc,-0x14(%rbp)
lea    0xeb3(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11de <main+0xae>
mov    -0x14(%rbp),%edi
imul   -0x14(%rbp),%edi
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
add    %eax,%edi
call   1050 <sqrt@plt>
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11cd <main+0x9d>
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xa9>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
jmp    1146 <main+0x16>
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    $0x18,%rsp
lea    0xecb(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11f7 <main+0xc7>
lea    0xeb2(%rip),%r13
lea    0xea9(%rip),%rbp
lea    0xe99(%rip),%r14
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%rbx
jmp    11ab <main+0x7b>
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11f7 <main+0xc7>
mov    0x14(%rsp),%edi
imul   %edi,%edi
add    $0x90,%edi
call   1050 <sqrt@plt>
movss  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
unpcklps %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
movapd 0xe28(%rip),%xmm1
cvtsi2sd %rax,%xmm1
divpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
ucomisd %xmm0,%xmm1
mov    %r13,%rdi
ja     1190 <main+0x60>
mov    %rbp,%rdi
jmp    1190 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [3 x i8] c"N\0A\00"
@.str.2 = [3 x i8] c"S\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %1
store i32 12, i32* %5
br label %9
9: ; preds = %38, %0
%10 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%11 = icmp eq i32 %10, 3
br i1 %11, label %12, label %39
12: ; preds = %9
%13 = load i32, i32* %5
%14 = load i32, i32* %5
%15 = mul nsw i32 %13, %14
%16 = load i32, i32* %2
%17 = load i32, i32* %2
%18 = mul nsw i32 %16, %17
%19 = add nsw i32 %15, %18
%20 = call i64 @sqrt(i32 %19)
%21 = sitofp i64 %20 to double
store double %21, double* %8
%22 = load i32, i32* %5
%23 = sitofp i32 %22 to double
%24 = load i32, i32* %3
%25 = sitofp i32 %24 to double
%26 = fdiv double %23, %25
store double %26, double* %6
%27 = load double, double* %8
%28 = load i32, i32* %4
%29 = sitofp i32 %28 to double
%30 = fdiv double %27, %29
store double %30, double* %7
%31 = load double, double* %7
%32 = load double, double* %6
%33 = fcmp ogt double %31, %32
br i1 %33, label %34, label %36
34: ; preds = %12
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %38
36: ; preds = %12
%37 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 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 = [9 x i8] c"%d %d %d\00"
@str = [2 x i8] c"S\00"
@str.3 = [2 x i8] c"N\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %29
9: ; preds = %0, %9
%10 = load i32, i32* %1
%11 = mul nsw i32 %10, %10
%12 = add nuw nsw i32 %11, 144
%13 = call i64 @sqrt(i32 %12)
%14 = sitofp i64 %13 to double
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = insertelement <2 x i32> poison, i32 %16, i64 0
%18 = insertelement <2 x i32> %17, i32 %15, i64 1
%19 = sitofp <2 x i32> %18 to <2 x double>
%20 = insertelement <2 x double> <double poison, double 1.200000e+01>, double %14, i64 0
%21 = fdiv <2 x double> %20, %19
%22 = extractelement <2 x double> %21, i64 0
%23 = extractelement <2 x double> %21, i64 1
%24 = fcmp ogt double %22, %23
%25 = select i1 %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0)
%26 = call i32 @puts(i8* dereferenceable(1) %25)
%27 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%28 = icmp eq i32 %27, 3
br i1 %28, label %9, label %29
29: ; preds = %9, %0
ret i32 0
}