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