#include using namespace std; int main() { int n; cin >> n; string ans = n % 90 == 0? "Yes": "No"; cout << ans << '\n'; return 0; }