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

int main() {
  string S, ret = "", tmp; cin >> S;
  for (auto s : S) {
    switch (s)
    {
    case '0': tmp = '0'; break;
    case '1': tmp = '1'; break;
    case '6': tmp = '9'; break;
    case '8': tmp = '8'; break;
    case '9': tmp = '6'; break;
    }
    ret = tmp + ret;
  }

  cout << ret << endl;
  return 0;
}
#include <iostream>
#include<stdio.h>
#include <cmath>
using namespace std;
 
int main(){
 int num;
 cin>>num;
 if(num%2==0){
 	cout<<"White";
 }else{ cout<<"Black";
 }
}