#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>c>>b>>a;
if(a>=165&&a<=185&&b>=50&&b<=80&&c>=16&&c<=19){
cout<<"Y";
}else cout<<"N";
}
/**************************************************************
Problem: 1661
User: toughuatao1
Language: C++
Result: Accepted
Time:20 ms
Memory:2072 kb
****************************************************************/