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.


-----Examples-----
Input
2 2
C M
Y Y

Output
#Color
Input
3 2
W W
W W
B B

Output
#Black&White
Input
1 1
W

Output
#Black&White

Difficulty: interview

Starter code:

Solutions:

n, m = list(map(int, input().split()))
for i in range(n):
    for j in input().split():
        if j in "CMY":
            print("#Color")
            return
print("#Black&White")


n, m= [int(i) for i in input().split()]
for i in range(n):
	s = input().split()
	if "Y" in s or "C" in s or "M" in s:
		print("#Color")
		break
else:
	print("#Black&White")




nbLig,nbCol=list(map(int,input().split()))
couleurs=["C","M","Y","W","G","B"]
compteur=[0]*6
for lig in range(nbLig):
    ligne=input().split()
    for element in ligne:
        compteur[couleurs.index(element)]+=1

if compteur[0]!=0 or compteur[1]!=0 or compteur[2]!=0:
    print("#Color")
else:
    print("#Black&White")


def main():
    n, m = map(int, input().split())
    photo = [input().split() for i in range(n)]
    for i in range(n):
        for j in range(m):
            if photo[i][j] in 'CMY':
                print("#Color")
                return
    print("#Black&White")
        
main()

n, m = map(int, input().split())
fl = False
for i in range(n):
    line = input()
    if 'C' in line or 'M' in line or 'Y' in line:
        fl = True
if fl:
    print('#Color')
else:
    print('#Black&White')

n, m = list(map(int, str.split(input())))
for _ in range(n):

    s = input()
    for color in "CMY":

        if color in s:

            print("#Color")
            return

print("#Black&White")


import sys

n, m = list(map(int, input().split()))

for i in range(n):
    for c in input().split():
        if c not in ['W', 'G', 'B']:
            print("#Color")
            return

print("#Black&White")




n, m = list(map(int,input().split()))
color = False
for _ in range(n):
    l = input()
    for c in ['C', 'M', 'Y']:
        if c in l:
            color = True
print('#Color' if color else '#Black&White')


from sys import stdin, exit

n, m = list(int(x) for x in stdin.readline().split())
for _ in range(n):
    line = stdin.readline().split()
    for c in line:
        if c in 'CMY':
            print('#Color')
            return
print('#Black&White')


n, m = [int(x) for x in input().strip().split()]
color = False
for it in range(n):
    line = [x for x in input().strip().split()]
    if 'M' in line or 'Y' in line or 'C' in line:
        print("#Color")
        color = True
        break
if not color:
    print("#Black&White")


r,c=list(map(int,input().split()))
ip=[]
for i in range(r):
    ip+=list(input().split())

if 'C' in ip or 'Y' in ip or 'M' in ip:
    print('#Color')
else:
    print('#Black&White')


line1=input().split()
n=int(line1[0])
m=int(line1[1])
black=True
for i in range (n):
    line=input().split()
    for c in line:
        if c=="W" or c=="B" or c=="G":
            pass
        else:
            black=False
if black:
    print ("#Black&White")
else:
    print("#Color")


CA = ['C', 'M', 'Y']


def solve():
    n, m = list(map(int, input().split()))
    c = [input().split() for _ in range(n)]
    for i in range(n):
        for j in range(m):
            if c[i][j] in CA:
                print('#Color')
                return
    print('#Black&White')


def main():
    solve()


def __starting_point():
    main()

__starting_point()

import sys

fin = sys.stdin
fout = sys.stdout
n, m = list(map(int, fin.readline().split()))
a = [0] * n
for i in range(n):
    a[i] = list(fin.readline().split())
for i in range(n):
    for j in range(m):
        if a[i][j] == 'C' or a[i][j] == 'M' or a[i][j] == 'Y':
            fout.write('#Color')
            return
fout.write('#Black&White')


import sys


def main():
    
    n, m = map(int, sys.stdin.readline().split())
    
    black = True
    for i in range(n):
        s = sys.stdin.readline()
        if 'C' in s or 'M' in s or 'Y' in s:
            black = False   
      
    if black:
        print("#Black&White")
    else :
        print("#Color")

main()

n, m = list(map(int, input().split()))
flag = True
for i in range(n):
    a = input().split()
    for j in a:
        if j == 'C' or j == 'M' or j == 'Y':
            flag = False

if flag:
    print("#Black&White")
else:
    print("#Color")


n, m = list(map(int, input().split(' ')))
color = ['B', 'W', 'G']
for i in range(n):
    x = input().split(' ')
    for i in x:
        if i not in color:
            print('#Color')
            return
print('#Black&White')


n, m = [int(i) for i in input().split()]

photo = "#Black&White"

for i in range(n):
    s = input()
    if "C" in s or "M" in s or "Y" in s:
        photo = "#Color"
        break

print(photo)


N, M = list(map(int, input().split()))
mat = []
for i in range(N):
    mat.append(input().split())
wgb = "WGB"
flg = False
for i in range(N):
    for j in range(M):
        if mat[i][j] not in wgb:
            flg = True
            break
    if flg:
        break
if flg:
    print("#Color")
else:
    print("#Black&White")


import math

n,m=list(map(int,input().split()))
f=0
for i in range(n):
    v2=[j for j in input().split()]
    for j in v2:
        if(j=='C' or j=='M' or j=='Y'):
            f=1
    
if(f==1):
    print("#Color")
else:
    print("#Black&White")


#!/usr/bin/env python3

from sys import stdin


def main():
    n, m = stdin_get_ints_from_line()

    colored = ['C', 'M', 'Y']

    for i in range(n):
        pixels = stdin_get_string_from_line().split(' ')
        for pixel in pixels:
            if pixel in colored:
                print('#Color')
                return
    print('#Black&White')

    return


def stdin_get_ints_from_line():
    return (int(x) for x in stdin.readline().strip().split(' '))


def stdin_get_ints_list_from_line():
    return list(int(x) for x in stdin.readline().strip().split(' '))


def stdin_get_string_from_line():
    return stdin.readline().strip()


def __starting_point():
    main()

__starting_point()

n,m = map(int, input().split())

ss = set()

for i in range(n):
    s = set(input().split())
    ss = ss.union(s)

if len(ss.intersection(set(['C','M','Y'])))>0:
    print("#Color")
else:
    print("#Black&White")

import sys
sys.setrecursionlimit(20000)

from collections import Counter
from math import ceil, floor, factorial, fsum, isinf, exp, log, log10, log2, isfinite
from itertools import product

def getlist(tcast):
	return [tcast(x) for x in input().strip().split(' ')]
def getval(tcast):
	return tcast(input().strip())
def getmatrix(r, tcast):
	mat = []
	for i in range(r):
		mat.append(getlist(tcast))
	return mat

def isodd(n):
    return n & 1
def numdigits(n):
    return len(str(n)) - (1 if n < 0 else 0)
def primesupto(n):
    isp = [True] * (n + 1)
    isp[0], isp[1] = False, False
    for i, x in enumerate(isp): #for each number
        if x: #found a prime
            mults = i * i
            while mults <= n:
                isp[mults] = False
                mults += i
    return isp
def maxarrays(a, b):
    return [max(x, y) for x, y in zip(a, b)]

nr, nc = getlist(int)
mat = getmatrix(nr, str)

#print(mat)
rows = map(lambda row: set(row), mat)
#print('----')

total = set()
for r in rows:
    total.update(r)
total -= set(['B', 'W', 'G'])
#print(total)
out = len(total)


print("#Black&White" if out == 0 else "#Color")

# coding: utf-8





import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def main():
    n, m = list(map(int, input().split(" ")))
    for i in range(n):
        a = input().split(" ")
        if "C" in a or "M" in a or "Y" in a:
            print("#Color")
            return
    print("#Black&White")

main()