#include <iostream>
using namespace std;
int main() {
int age, weight, height;
cin >> age >> weight >> height;
bool isQualified = (age >= 16 && age <= 19)
&& (weight >= 50 && weight <= 80)
&& (height >= 165 && height <= 185);
if (isQualified) {
cout << "Y" << endl;
} else {
cout << "N" << endl;
}
return 0;
}
/**************************************************************
Problem: 1661
User: fuhoubin
Language: C++
Result: Accepted
Time:34 ms
Memory:2072 kb
****************************************************************/