Limits 1s, 512 MB

Imagine an infinite chess board. The cell on the bottom-left most corner is labelled (0,0)(0, 0). The cell on the right of it is labelled (1,0)(1, 0). The cell above (0,0)(0, 0) is labelled (0,1)(0, 1).

The colors of the cells alternate such that no two adjacent cells share the same color. The cell is colored either blank or white. The bottom-left most cell is black.

Given the label of a cell, you have to determine whether whether it is black or white.


The input will contain two integers AA (0A10100000000 \le A \le 10^{10000000}) and BB (0B10100000000 \le B \le 10^{10000000}) representing the cell labelled (A,B)(A, B).


If the cell (A,B)(A, B) is colored black, print “Black”. If it is colored white, print “White”.


1 1


Login to submit.


62% Solution Ratio
rkb_rdEarliest, Jan '23
Labib.899366Fastest, 0.0s
Labib.899366Lightest, 5.2 MB
Nusab19Shortest, 43B
Toph uses cookies. By continuing you agree to our Cookie Policy.