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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long

const long long MOD = 1000000007;

int main(){
  int n,a;
  int x=0;
  cin >> n;
  vector<bool> c(200001,true);
  
  rep(i,n){
    cin >> a;
    c.at(a)=false;
    while(!c.at(x)) x++;
    cout << x << endl;
  }
  
}

#include<iostream>
using namespace std;

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