#include using namespace std; int main() { int T; cin >> T; for (int i = 0; i < T; i++) { int N; cin >> N; if (N == 0) cout << 'Y' << endl; else cout << 'N' << endl; } }