#include using namespace std; int T,X; main() { cin>>T; for(;T--;)cin>>X,cout<<(X==0||X==45?"Y":"N")<