#include using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; for (int i = 0; i < n; ++i) { int x; cin >> x; cout << ((x == 0 || x == 45) ? "Y" : "N") << endl; } return 0; }