#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int n; cin >> n; if ((n+360)%360 == 90 || (n+360)%360 == 270) cout << "Yes" << endl; else cout << "No" << endl; }