#include #include using namespace std; #define ll long long int main(){ int T; cin >> T; int X[T]; for (int i = 0; i < T;i++) { cin >> X[i]; if(X[i] == 45 || X[i] == 0){ cout <<"Y"<< endl; } else{ cout << "N" << endl; } } }