#include #define int long long using namespace std; signed main() { int t; cin >> t; for (int i = 0; i < t; ++i) { int x; cin >> x; if (x == 0 || x == 45)cout << "Y" << endl; else cout << "N" << endl; } }