#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*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int I, W;
  while (1) {
    scanf("%d %d", &I, &W);
    if (I == -1) {
      break;
    }
    if ((long double)I / W == (long double)1000 / 37) {
      puts("Y");
    } else {
      puts("N");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
jne    1152 <main+0x32>
jmp    11a5 <main+0x85>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
fildl  -0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
fildl  -0x10(%rbp)
fdivrp %st,%st(1)
fldt   0xe94(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    1194 <main+0x74>
jp     1194 <main+0x74>
jmp    1183 <main+0x63>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
jmp    11a0 <main+0x80>
lea    0xe7d(%rip),%rdi
call   1030 <puts@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xedc(%rip),%rdi
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0xffffffff,%eax
je     11c5 <main+0xa5>
fldt   0xeae(%rip)
fstpt  0x14(%rsp)
lea    0xebb(%rip),%rbx
lea    0xeb2(%rip),%r13
lea    0xea5(%rip),%r14
lea    0x4(%rsp),%r15
lea    0x8(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    %eax,0xc(%rsp)
fildl  0xc(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x10(%rsp)
fidivl 0x10(%rsp)
fldt   0x14(%rsp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
mov    %r13,%rdi
cmovne %rbx,%rdi
cmovp  %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0xffffffff,%eax
jne    1180 <main+0x60>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [2 x i8] c"Y\00"
@.str.2 = [2 x i8] c"N\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %0, %20
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %9
8: ; preds = %4
br label %21
9: ; preds = %4
%10 = load i32, i32* %2
%11 = sitofp i32 %10 to x86_fp80
%12 = load i32, i32* %3
%13 = sitofp i32 %12 to x86_fp80
%14 = fdiv x86_fp80 %11, %13
%15 = fcmp oeq x86_fp80 %14, 0xK4003D83759F22983759F
br i1 %15, label %16, label %18
16: ; preds = %9
%17 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %20
18: ; preds = %9
%19 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %16
br label %4
21: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [2 x i8] c"Y\00"
@.str.2 = [2 x i8] c"N\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp eq i32 %6, -1
br i1 %7, label %20, label %8
8: ; preds = %0, %8
%9 = phi i32 [ %18, %8 ], [ %6, %0 ]
%10 = sitofp i32 %9 to x86_fp80
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to x86_fp80
%13 = fdiv x86_fp80 %10, %12
%14 = fcmp oeq x86_fp80 %13, 0xK4003D83759F22983759F
%15 = select i1 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0)
%16 = call i32 @puts(i8* dereferenceable(1) %15)
%17 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%18 = load i32, i32* %1
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %8
20: ; preds = %8, %0
ret i32 0
}