#include using namespace std; int main () { int N; cin >> N; if (N % 8 == 0) { cout << "Yes\n"; } else { cout << "No\n"; } }