#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 getDistancia(int);
double getTempo(double, int);
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, int *, int *, int *);
int main() {
  int d, vf, vg;
  while (scanf("%d %d %d", &d, &vf, &vg) != EOF) {
    double d_ga = getDistancia(d);
    double t_b = getTempo(12, vf);
    double t_g = getTempo(d_ga, vg);
    if (t_g <= t_b)
      printf("S\n");
    else
      printf("N\n");
  }
}


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   1060 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     11e1 <main+0xa1>
mov    -0x8(%rbp),%edi
call   1030 <getDistancia@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%edi
movsd  0xe71(%rip),%xmm0
call   1050 <getTempo@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%edi
call   1050 <getTempo@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     11d0 <main+0x90>
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
jmp    11dc <main+0x9c>
lea    0xe3d(%rip),%rdi
call   1040 <printf@plt>
jmp    114f <main+0xf>
mov    -0x4(%rbp),%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    0xeb3(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1060 <scanf@plt>
mov    0x2e78(%rip),%r13
cmp    0x0(%r13),%rax
je     1209 <main+0xc9>
lea    0xe92(%rip),%rbp
lea    0xe80(%rip),%r14
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    0x14(%rsp),%edi
call   1030 <getDistancia@plt>
movsd  %xmm0,0x20(%rsp)
mov    0x10(%rsp),%edi
movsd  0xe45(%rip),%xmm0
call   1050 <getTempo@plt>
movsd  %xmm0,0x18(%rsp)
mov    0xc(%rsp),%edi
movsd  0x20(%rsp),%xmm0
call   1050 <getTempo@plt>
movsd  0x18(%rsp),%xmm1
ucomisd %xmm0,%xmm1
mov    %rbp,%rdi
lea    0xe28(%rip),%rax
cmovb  %rax,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1060 <scanf@plt>
cmp    0x0(%r13),%rax
jne    11a0 <main+0x60>
xor    %eax,%eax
add    $0x28,%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"
@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
%7 = alloca double
store i32 0, i32* %1
br label %8
8: ; preds = %27, %0
%9 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%10 = load i64, i64* @EOF
%11 = icmp ne i64 %9, %10
br i1 %11, label %12, label %28
12: ; preds = %8
%13 = load i32, i32* %2
%14 = call double @getDistancia(i32 %13)
store double %14, double* %5
%15 = load i32, i32* %3
%16 = call double @getTempo(double 1.200000e+01, i32 %15)
store double %16, double* %6
%17 = load double, double* %5
%18 = load i32, i32* %4
%19 = call double @getTempo(double %17, i32 %18)
store double %19, double* %7
%20 = load double, double* %7
%21 = load double, double* %6
%22 = fcmp ole double %20, %21
br i1 %22, label %23, label %25
23: ; preds = %12
%24 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %27
25: ; preds = %12
%26 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
br label %8
28: ; preds = %8
%29 = load i32, i32* %1
ret i32 %29
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\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 ([9 x i8], [9 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 %23, label %10
10: ; preds = %0, %10
%11 = load i32, i32* %1
%12 = call double @getDistancia(i32 %11)
%13 = load i32, i32* %2
%14 = call double @getTempo(double 1.200000e+01, i32 %13)
%15 = load i32, i32* %3
%16 = call double @getTempo(double %12, i32 %15)
%17 = fcmp ugt double %16, %14
%18 = select i1 %17, 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)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
%20 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%21 = load i64, i64* @EOF
%22 = icmp eq i64 %20, %21
br i1 %22, label %23, label %10
23: ; preds = %10, %0
ret i32 0
}