#include using namespace std; int main(){ int n; cin >> n; cout << (n % 90 == 0 && (n / 90) % 2 == 1 ? "Yes" : "No") << endl; }