Black or White

Tough Dash, January 2023
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.


74% Solution Ratio
rkb_rdEarliest, 1M ago
FAHIM.ctgFastest, 0.0s
Md.JoyLightest, 21 MB
Mohit.4330Shortest, 84B
Toph uses cookies. By continuing you agree to our Cookie Policy.