#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < int(n); i++)
using ll = long long;

int main(){
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	
	ll n;
	cin >> n;
	bool ok = false;
	
	if(n%4 == 0) ok = true;
	if(n%100 == 0) ok = false;
	if(n%400 == 0) ok = true;
	
	if(ok) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}