#include using namespace std; int main(){ int n; cin>>n; cout<<(n%360-90==0||n%360-270==0?"Yes"s:"No"s)<<"\n"s; }