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