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