#include using namespace std; int main(){ int64_t N; cin >> N; int64_t ans = N; int count = 1; while(ans > 9){ ans /= 9; count *= 9; } ans = N % count; if(ans % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }