#include using namespace std; int main() { int n; cin >> n; n %= 360; if (n == 90 or n == 270) { cout << "Yes" << '\n'; } else { cout << "No" << '\n'; } return 0; }