#include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int N; string A; cin >> N; N = N % 4; if (N == 0) A = "Yes"; N = N % 400; if (N == 0) { A = "Yes"; }else if (A == "Yes"){ N = N % 100; A = "No"; }else A = "No"; cout << A << "\n"; }