#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; int main() { int N; cin >> N; if (N % 8 == 0) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; } // 1 3 5 7 | 9 11 13 15 // 2 4 6 8 | 10 12 14 16