#include #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; typedef long long ll; typedef pairP; const ll MOD=1000000007; //~ const int MOD=998244353; const int INF=0x3f3f3f3f; const ll INFL=0x3f3f3f3f3f3f3f3f; int main(){ int n;cin>>n; n%=360; if(n==90||n==270)puts("Yes"); else puts("No"); }