Codeforces Round 368 (Div. 2)
A
Brain's Photos
Codeforces
800
原题
←B →
翻译中…

Small, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone his plans of taking over the world, but to become a photographer instead.

翻译中…

As you may know, the coolest photos are on the film (because you can specify the hashtag #film for such).

翻译中…

Brain took a lot of colourful pictures on colored and black-and-white film. Then he developed and translated it into a digital form. But now, color and black-and-white photos are in one folder, and to sort them, one needs to spend more than one hour!

翻译中…

As soon as Brain is a photographer not programmer now, he asks you to help him determine for a single photo whether it is colored or black-and-white.

翻译中…

Photo can be represented as a matrix sized $*n* × *m*$, and each element of the matrix stores a symbol indicating corresponding pixel color. There are only $6$ colors:

翻译中…
  • 'C' (cyan)
  • 'M' (magenta)
  • 'Y' (yellow)
  • 'W' (white)
  • 'G' (grey)
  • 'B' (black)
翻译中…

The photo is considered black-and-white if it has only white, black and grey pixels in it. If there are any of cyan, magenta or yellow pixels in the photo then it is considered colored.

翻译中…

Input

翻译中…

The first line of the input contains two integers $*n*$ and $*m*$ ($1 ≤ *n*, *m* ≤ 100$) — the number of photo pixel matrix rows and columns respectively.

翻译中…

Then $*n*$ lines describing matrix rows follow. Each of them contains $*m*$ space-separated characters describing colors of pixels in a row. Each character in the line is one of the 'C', 'M', 'Y', 'W', 'G' or 'B'.

翻译中…

Output

翻译中…

Print the "#Black&White" (without quotes), if the photo is black-and-white and "#Color" (without quotes), if it is colored, in the only line.

翻译中…

样例

Input #1
2 2
C M
Y Y
Output #1
#Color
InputCopy OutputCopy
Input #2
3 2
W W
W W
B B
Output #2
#Black&White
InputCopy OutputCopy
Input #3
1 1
W
Output #3
#Black&White
InputCopy OutputCopy
题目信息
题号
707A
时间限制
2 s
内存限制
256 MB
标签
模拟

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