Codeforces Beta Round 39
A
寻找颜色
Find Color
Codeforces
1300
原题
←B →

寻找颜色AI (CI翻译)

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:

不久前,由于战事,别兰的主要景点——魔法时钟遭到了损坏。炮弹在时钟上打出了几个洞,因此居民们正为修复时钟而担忧。魔法时钟可以看作一个无限的笛卡尔平面,原点对应时钟的中心。时钟被涂成了两种颜色,如图所示:AI (CI翻译)

image

imageAI (CI翻译)

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

图中只展示了时钟的中心部分。这种着色方式自然地延伸到无穷远处。AI (CI翻译)

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.

可以将炮弹看作平面上的点。你的任务是确定给定炮弹击中的区域的颜色。AI (CI翻译)

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

所有位于某个区域边界上的点都视为涂成黑色。AI (CI翻译)

Input

输入格式

AI (CI翻译)

The first and single line contains two integers $*x*$ and $*y*$ — the coordinates of the hole made in the clock by the ball. Each of the numbers $*x*$ and $*y*$ has an absolute value that does not exceed $1000$.

唯一一行包含两个整数 $*x*$ 和 $*y*$,表示炮弹在时钟上打出的洞的坐标。$*x*$ 和 $*y*$ 的绝对值均不超过 $1000$。AI (CI翻译)

Output

输出格式

AI (CI翻译)

Find the required color.

输出所求区域的颜色。AI (CI翻译)

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

所有与坐标原点之间的距离为整数的点都涂成黑色。AI (CI翻译)

样例

Input #1
-2 1
Output #1
white
InputCopy OutputCopy
Input #2
2 1
Output #2
black
InputCopy OutputCopy
Input #3
4 3
Output #3
black
InputCopy OutputCopy
题目信息
题号
40A
时间限制
2 s
内存限制
256 MB
标签
构造
计算几何
模拟
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。