#include using namespace std; int main() { // 入力 int N; cin >> N; // 判定 if (N % 400 == 0) { cout << "Yes" << endl; } else if (N % 100 == 0) { cout << "No" << endl; } else if (N % 4 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }