#include using namespace std; int main(){ int t; cin >> t; while(t){ t--; int x; cin >> x; if(x==45 || x==0) cout << "Y" << endl; else cout << "N" << endl; } }