S001-AC.cc
319 Bytes
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int y;
cin >> y;
if(!(y - (y/100)*100))
{
if(!((y/100)%4))
{
cout << "YES" << endl;
return 0;
}
cout << "NO" << endl;
return 0;
}
if(!(y%4))
{
cout << "YES" << endl;
return 0;
}
cout << "NO" << endl;
return 0;
}