#include"bits/stdc++.h" using namespace std; #define rep(i,n) for(int i=0;i P; signed main() { int t; cin >> t; rep(i, t) { int x; cin >> x; if (x == 0 || x == 45)cout << "Y" << endl; else cout << "N" << endl; } }