h[2],a[2],q;f(c,d){~scanf(" %c%d",&c,&d)?f(),a[q=c&1]==d?!a[1-q]--?a[1-q]+=h[q]:0:0:0;}main(){*a=f(scanf("%d%d%*d",h+1,h))>puts(*a+a[1]&1?"black":"white");}