SP9759 SCPC11F - GO

Description

In the game of Go, two players alternate placing black and white stones on lattice points of an n × n grid, each attempting to surround as much territory (i.e., regions of unfilled lattice points) as possible. At the end of the game, the score for each player is the total area of the territory surrounded by his or her stones. Given the locations of black and white stones on a Go board at the end of a match, your task is to compute the score of each player in order to

Input Format

The input test file will contain multiple cases, each consisting of three lines. Each test case begins with a line containing three integers, n (where 1 = 0,w >= 0 and 1

Output Format

For each test case, print either “White wins by ”, “Black wins by ”, or “Draw”.