#include
using namespace std;
int main() {
int num;
cin>>num;
int sum_even=0;
int sum_odd=0;
while(num>0){
if(num%2==0){
sum_even = sum_even + num;
}else{
sum_odd = sum_odd + num;
}
if(sum_even%4==0 || sum_odd%3==0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
return 0;
}