#include<iostream>
using namespace std;
int N;
main()
{
    cin>>N;
    N%=360;
    cout<<(N==90||N==270?"Yes":"No")<<endl;
}