#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 ? "Y" : "N") << "\n"; } return 0; }