CF40A.Find Color

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Not so long ago as a result of combat operations the main Berland place of interest — the magic clock — was damaged. The cannon's balls made several holes in the clock, that's why the residents are concerned about the repair. The magic clock can be represented as an infinite Cartesian plane, where the origin corresponds to the clock center. The clock was painted two colors as is shown in the picture:

The picture shows only the central part of the clock. This coloring naturally extends to infinity.

The balls can be taken to be points on the plane. Your task is to find the color of the area, damaged by the given ball.

All the points located on the border of one of the areas have to be considered painted black.

输入格式

The first and single line contains two integers xx and yy — the coordinates of the hole made in the clock by the ball. Each of the numbers xx and yy has an absolute value that does not exceed 10001000 .

输出格式

Find the required color.

All the points between which and the origin of coordinates the distance is integral-value are painted black.

输入输出样例

  • 输入#1

    -2 1
    

    输出#1

    white
    
  • 输入#2

    2 1
    

    输出#2

    black
    
  • 输入#3

    4 3
    

    输出#3

    black
    
首页