#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false), cin.tie(nullptr);
    string s;
    cin >> s;
    if (s.size() <= 3) {
        sort(s.begin(), s.end());
        do {
            if (stoi(s) % 8 == 0) {
                cout << "Yes\n";
                return 0;
            }
        } while (next_permutation(s.begin(), s.end()));
    } else {
        for (int x = 112; x < 1000; x += 8) {
            int cnt[10]{};
            for (int y = x; y > 0; y /= 10) {
                cnt[y % 10]++;
            }
            if (cnt[0]) continue;
            for (char c : s) {
                if (--cnt[c - '0'] == 0) {
                    bool ok = true;
                    for (int i = 0; i < 10; i++) {
                        ok &= (cnt[i] <= 0);
                    }
                    if (ok) {
                        cout << "Yes\n";
                        return 0;
                    }
                }
            }
            
        }
    }
    cout << "No\n";
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    cout << ((n % 2 == 0) ? "White" : "Black") << endl;
    return 0;
}