#include using namespace std; using pii = pair; using ll = long long; #define rep(i, j, n) for(int i = j; i < (int)(n); i++) const ll MOD = 1000000007; const ll INFL = (1LL << 60); const int INFI = (1 << 30); int main() { int N; cin >> N; if (N % 360 == 90 || N % 360 == 270) cout << "Yes" << endl; else cout << "No" << endl; }