#include<bits/stdc++.h>
using namespace std;
int n;
int main() {
cin >> n;
if( n % 4 == 0&& n % 100 != 0) {
cout << "Yes" << endl;
} else if( n % 100 == 0 && n % 400 != 0) {
cout << "No" << endl;
} else if( n % 400 == 0 && n % 3200 != 0) {
cout << "Yes" << endl;
} else if( n % 3200 == 0 && n % 172800 != 0) {
cout << "No" << endl;
} else if( n % 172800 == 0) {
cout << "Yes" << endl;
}
return 0;
}
#include<bits/stdc++.h> using namespace std; int n; int main() { cin >> n; if( n % 4 == 0&& n % 100 != 0) { cout << "Yes" << endl; } else if( n % 100 == 0 && n % 400 != 0) { cout << "No" << endl; } else if( n % 400 == 0 && n % 3200 != 0) { cout << "Yes" << endl; } else if( n % 3200 == 0 && n % 172800 != 0) { cout << "No" << endl; } else if( n % 172800 == 0) { cout << "Yes" << endl; } return 0; }