#include using namespace std; int main() { //cin读入优化 std::ios::sync_with_stdio(false); int a; cin >> a; if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) { cout << "Y" << endl; } else { cout << "N" << endl; } return 0; }