You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
311 B

#include <bits/stdc++.h>
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;
}