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