#include
using namespace std;
int main()
{
int N,r,s=0,a,b,t=0;
cin>>N;
while(N!=0)
{
r=N%10;
if(r%2==0)
{
s=s+r;
N=N/10;
}
else
{
t=t+r;
N=N/10;
}
}
if (s%4==0 || t%3==0)
{
cout<<"Yes";
}
else
{
cout<<"no";
}
return 0;
}