#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__ pow(int, int);
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, int *, int *, int *);
int sqrt(scalar_t__);
int main(void) {
  int D, VF, VG;
  while (scanf("%d %d %d\n", &D, &VF, &VG) != EOF) {
    double tF = 12.0 / VF;
    double tG = sqrt(pow(D, 2) + pow(12, 2)) / VG;
    if (tG <= tF) {
      printf("S\n");
    } else {
      printf("N\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     11fc <main+0xbc>
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xe7c(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1050 <pow@plt>
mov    %rax,-0x28(%rbp)
mov    $0xc,%edi
mov    $0x2,%esi
call   1050 <pow@plt>
mov    -0x28(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
cltd
idivl  -0x10(%rbp)
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     11eb <main+0xab>
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
jmp    11f7 <main+0xb7>
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
jmp    114f <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    $0x18,%rsp
lea    0xeb3(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x2e78(%rip),%rcx
cmp    (%rcx),%rax
jne    1186 <main+0x46>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe85(%rip),%rbp
lea    0xe74(%rip),%r14
lea    0xc(%rsp),%r15
lea    0x8(%rsp),%r12
lea    0x4(%rsp),%r13
jmp    11d2 <main+0x92>
cs nopw 0x0(%rax,%rax,1)
nop
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
call   1040 <scanf@plt>
mov    0x2e1b(%rip),%rcx
cmp    (%rcx),%rax
je     1175 <main+0x35>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x8(%rsp),%xmm0
movsd  0xe1d(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1050 <pow@plt>
mov    %rax,%rbx
mov    $0xc,%edi
mov    $0x2,%esi
call   1050 <pow@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
cltd
idivl  0x4(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
mov    %rbp,%rdi
jb     11b0 <main+0x70>
lea    0xdd6(%rip),%rdi
jmp    11b0 <main+0x70>

LLVM IR (-O0):
@.str = [10 x i8] c"%d %d %d\0A\00"
@EOF = global i64 0
@.str.1 = [3 x i8] c"S\0A\00"
@.str.2 = [3 x i8] c"N\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
br label %7
7: ; preds = %30, %0
%8 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%9 = load i64, i64* @EOF
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %31
11: ; preds = %7
%12 = load i32, i32* %3
%13 = sitofp i32 %12 to double
%14 = fdiv double 1.200000e+01, %13
store double %14, double* %5
%15 = load i32, i32* %2
%16 = call i64 @pow(i32 %15, i32 2)
%17 = call i64 @pow(i32 12, i32 2)
%18 = add nsw i64 %16, %17
%19 = call i32 @sqrt(i64 %18)
%20 = load i32, i32* %4
%21 = sdiv i32 %19, %20
%22 = sitofp i32 %21 to double
store double %22, double* %6
%23 = load double, double* %6
%24 = load double, double* %5
%25 = fcmp ole double %23, %24
br i1 %25, label %26, label %28
26: ; preds = %11
%27 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %30
28: ; preds = %11
%29 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %7
31: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%d %d %d\0A\00"
@EOF = global i64 0
@str = [2 x i8] c"N\00"
@str.3 = [2 x i8] c"S\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 i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i64, i64* @EOF
%9 = icmp eq i64 %7, %8
br i1 %9, label %28, label %10
10: ; preds = %0, %10
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to double
%13 = fdiv double 1.200000e+01, %12
%14 = load i32, i32* %1
%15 = call i64 @pow(i32 %14, i32 2)
%16 = call i64 @pow(i32 12, i32 2)
%17 = add nsw i64 %16, %15
%18 = call i32 @sqrt(i64 %17)
%19 = load i32, i32* %3
%20 = sdiv i32 %18, %19
%21 = sitofp i32 %20 to double
%22 = fcmp ult double %13, %21
%23 = select i1 %22, 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)
%24 = call i32 @puts(i8* dereferenceable(1) %23)
%25 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%26 = load i64, i64* @EOF
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %10
28: ; preds = %10, %0
ret i32 0
}