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