#include using namespace std; using ll = long long; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; cout << ((n % 90 == 0 && n / 90 % 2 == 1) ? "Yes" : "No") << endl; return 0; }