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: EASY
Tags: Implementation

Starter code:

Solutions:
(n, m) = list(map(int, input().split()))
for i in range(n):
	if any(map(lambda x: x in 'CMY', input())):
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = input().split()
resultado = int(n) * int(m)
boleano = True
for x in range(int(n)):
	lista = list(map(str, input().split()))
	for y in range(int(m)):
		if lista[y] == 'W' or lista[y] == 'B' or lista[y] == 'G':
			boleano = True
		else:
			boleano = False
			break
	if boleano == False:
		break
if boleano:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
mas = []
for x in range(n):
	for i in input().split():
		mas.append(i)
if mas.count('C') > 0 or mas.count('M') > 0 or mas.count('Y') > 0:
	print('#Color')
else:
	print('#Black&White')


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


n = int(input().split()[0])
pixels = []
for i in range(n):
	pixels.extend(list(input().split()))
if 'C' in pixels or 'M' in pixels or 'Y' in pixels:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = 0
for x in range(n):
	colors = list(input().split())
	if 'C' in colors or 'M' in colors or 'Y' in colors:
		a = 1
		break
if a == 0:
	print('#Black&White')
elif a == 1:
	print('#Color')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(list(input().split()))
flag = 0
for i in range(n):
	for j in range(m):
		if l[i][j] == 'W' or l[i][j] == 'B' or l[i][j] == 'G':
			continue
		else:
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
flag = 0
for i in range(n):
	str = input()
	str_list = str.split()
	for j in str_list:
		if j == 'C' or j == 'M' or j == 'Y':
			flag = 1
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().strip().split(' '))
cp = []
for i in range(n):
	cp += list(input().strip().split(' '))
color = cp.count('C') + cp.count('M') + cp.count('Y')
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
k1 = 0
k2 = 0
k3 = 0
k4 = 0
k5 = 0
k6 = 0
for i in range(n):
	l = list(input().split())
	k1 = k1 + l.count('C')
	k2 = k2 + l.count('M')
	k3 = k3 + l.count('Y')
	k4 = k4 + l.count('B')
	k5 = k5 + l.count('G')
	k6 = k6 + l.count('W')
if k1 != 0 or k2 != 0 or k3 != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
check = 1
for i in range(n):
	tmp = input()
	for i in tmp:
		if i == 'C' or i == 'M' or i == 'Y':
			check = 0
			break
if check:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
c = 0
for i in range(n):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		c = c + 1
if c == 0:
	print('#Black&White')
else:
	print('#Color')


import re
n = [int(x) for x in input().split()]
L = ''.join(''.join([input() for _ in ' ' * n[0]]).split())
print('#Color' if re.search('[CMY]', L) != None else '#Black&White')


(n, m) = [int(x) for x in input().split()]
l = []
for i in range(n):
	for j in input().split():
		l.append(j)
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
d = 0
for i in range(n):
	a = input().split()
	for i in a:
		if 'C' == i or 'M' == i or 'Y' == i:
			d = 1
	if d == 1:
		print('#Color')
		break
if d == 0:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
l = []
for i in range(n):
	o = input()
	l += [o]
j = True
for i in l:
	if 'C' in i or 'M' in i or 'Y' in i:
		j = False
		break
if j:
	print('#Black&White')
else:
	print('#Color')


X = list(map(int, input().split()))
for i in range(X[0]):
	Pic = input().split()
	for i in Pic:
		if i not in 'WBG':
			print('#Color')
			exit()
print('#Black&White')


li = []
(r, c) = map(int, input().split())
for i in range(r):
	row = list(map(str, input().split()))
	li.append(row)
count = 0
for i in range(0, r):
	for j in range(0, c):
		if li[i][j] == 'W' or li[i][j] == 'G' or li[i][j] == 'B':
			count = count + 1
		else:
			break
if c * r == count:
	print('#Black&White')
else:
	print('#Color')


(row, col) = input().split()
row = int(row)
word = set()
while row > 0:
	temp = input().split()
	for color in temp:
		word.add(color)
	row -= 1
if 'C' in word or 'Y' in word or 'M' in word:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = False
for i in range(n):
	x = list(input().split())
	if not color:
		for elem in x:
			if elem == 'C' or elem == 'Y' or elem == 'M':
				color = True
				break
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
colored = ['C', 'M', 'Y']
black_white = ['W', 'B', 'G']
(pixels, result) = ([], '#Black&White')
for i in range(n):
	pixels.append(list(input().split()))
for row in range(n):
	for col in range(m):
		if pixels[row][col] not in black_white:
			result = '#Color'
print(result)


z = input().split()
baris = int(z[0])
kolom = int(z[1])
status = False
for i in range(baris):
	x = input().split()
	for j in range(kolom):
		if x[j] == 'C' or x[j] == 'M' or x[j] == 'Y':
			status = True
			break
if status:
	print('#Color')
else:
	print('#Black&White')


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


def blackAndWhite(arr):
	col = 'CMY'
	for i in arr:
		for j in i:
			if j in col:
				return '#Color'
	return '#Black&White'
x = list(map(int, input().rstrip().split()))
n = x[0]
a = []
for i in range(n):
	x = input().strip()
	a.append(x)
print(blackAndWhite(a))


l = list(input().split())
n = int(l[0])
m = int(l[1])
result = '#Black&White'
q = []
for i in range(n):
	l = list(input().split())
	q.append(l)
for i in range(n):
	for j in range(m):
		if q[i][j] != 'B' and q[i][j] != 'W' and (q[i][j] != 'G'):
			result = '#Color'
			break
	if result == '#Color':
		break
print(result)


(n, m) = [int(x) for x in input().split()]
f = True
for i in range(n):
	ipt = [x for x in input().split()]
	if 'C' in ipt or 'M' in ipt or 'Y' in ipt:
		f = False
if f:
	print('#Black&White')
else:
	print('#Color')


c = []
(n, m) = map(int, input().split())
for i in range(n):
	for j in input().split():
		c.append(j)
if any((_ in ['C', 'M', 'Y'] for _ in c)):
	print('#Color')
else:
	print('#Black&White')


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


l = int(input().split()[0])
a = []
b = ['C', 'M', 'Y']
for i in range(l):
	a.extend(input().split())
if any((x in a for x in b)):
	print('#Color')
else:
	print('#Black&White')


a = input()
al = a.split()

def color(z):
	for i in range(z):
		b_i = input()
		if 'C' in b_i or 'Y' in b_i or 'M' in b_i:
			return '#Color'
	return '#Black&White'
print(color(int(al[0])))


(n, m) = list(map(int, input().split()))
count = 0
for i in range(n):
	a = list(input().split())
	if 'C' in a or 'Y' in a or 'M' in a:
		count += 1
if count > 0:
	print('#Color')
else:
	print('#Black&White')


l = list(map(int, input().split()))
n = l[0]
m = l[1]
color = []
for i in range(n):
	s = list(input().split())
	for j in s:
		color.append(j)
count = 0
for i in color:
	if i == 'C' or i == 'Y' or i == 'M':
		count = 1
		break
	else:
		count = 0
if count == 1:
	print('#Color')
else:
	print('#Black&White')


for i in range(int(input().split()[0])):
	for ch in input().split():
		if ch in 'CMY':
			print('#Color')
			exit()
print('#Black&White')


(x, y) = map(int, input().split())
for i in range(x):
	p = list(map(str, input().split()))
	for i in p:
		if i == 'C' or i == 'M' or i == 'Y':
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
res = '#Black&White'
while n:
	arr = set(input().split())
	if any((c in arr for c in ['Y', 'C', 'M'])):
		res = '#Color'
	n -= 1
print(res)


(n, m) = map(int, input().split(' '))
ai = [[j for j in input().split()] for i in range(n)]
check = False
for i in range(n):
	if ai[i].count('C') > 0 or ai[i].count('M') > 0 or ai[i].count('Y') > 0:
		check = True
if check:
	print('#Color')
else:
	print('#Black&White')


s = [int(n) for n in input().split()]
z = []
for n in range(s[0]):
	j = [n for n in input().split()]
	z += j
if 'C' in z or 'M' in z or 'Y' in z:
	print('#Color')
else:
	print('#Black&White')


before = list(map(int, input().split()))
row_num = before[0]
pixels = ''
colored = 0
for num in range(row_num):
	string = input()
	pixels = pixels + string
for letter in pixels:
	if letter == 'C':
		colored = colored + 1
		break
	elif letter == 'M':
		colored = colored + 1
		break
	elif letter == 'Y':
		colored = colored + 1
		break
if colored != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
b = '#Black&White'
for i in range(n):
	a = [str(i) for i in input().split()]
	if 'C' in a or 'M' in a or 'Y' in a:
		b = '#Color'
print(b)


(n, m) = map(int, input().split())
type1 = []
for i in range(n):
	b = list(map(str, input().split()))
	for i in range(len(b)):
		type1.append(b[i])
if 'C' in type1:
	print('#Color')
elif 'M' in type1:
	print('#Color')
elif 'Y' in type1:
	print('#Color')
else:
	print('#Black&White')


flag = 1
(row, col) = map(int, input().split())
for r in range(row):
	lis = input().split()
	for i in lis:
		if i in ['C', 'M', 'Y']:
			flag = 0
			break
if flag:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l = []
a = ['B', 'G', 'W']
for i in range(n):
	l.append(list(map(str, input().split())))
l = sum(l, [])
l = list(set(l))
result = all((elem in a for elem in l))
if result:
	print('#Black&White')
else:
	print('#Color')


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

def solve():
	for i in range(n):
		a = input().split()
		for j in a:
			if j in ['C', 'M', 'Y']:
				return '#Color'
	return '#Black&White'
print(solve())


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


(n, m) = map(int, input().split())
a = list()
for i in range(n):
	a.append(input().split())
if n == 1:
	if m == 1:
		if a[0][0] != 'B' and a[0][0] != 'W' and (a[0][0] != 'G'):
			print('#Color')
		else:
			print('#Black&White')
	else:
		x = 0
		for i in range(m):
			if a[0][i] != 'B' and a[0][i] != 'W' and (a[0][i] != 'G'):
				x = 1
				break
		if x:
			print('#Color')
		else:
			print('#Black&White')
else:
	x = 0
	for i in range(n):
		if m > 1:
			for j in range(m):
				if a[i][j] != 'B' and a[i][j] != 'W' and (a[i][j] != 'G'):
					x = 1
					break
		elif a[i][0] != 'B' and a[i][0] != 'W' and (a[i][0] != 'G'):
			x = 1
		if x:
			break
	if x:
		print('#Color')
	else:
		print('#Black&White')


(a, b) = map(int, input().split(' '))
chk = 0
for i in range(a):
	ch = list(input().split())
	for j in range(b):
		if ch[j] == 'Y' or ch[j] == 'C' or ch[j] == 'M':
			chk = 1
			break
	if chk:
		break
if chk:
	print('#Color')
else:
	print('#Black&White')


(r, c) = map(int, input().split())
l = []
for i in range(r):
	a = input().split()
	l.append(a)
x = 0
for i in range(r):
	for j in range(c):
		if l[i][j] == 'C' or l[i][j] == 'M' or l[i][j] == 'Y':
			x = 1
			print('#Color')
			break
	if x == 1:
		break
if x == 0:
	print('#Black&White')


def check(photo):
	for i in range(len(photo)):
		for j in range(len(photo[0])):
			if photo[i][j] == 'C' or photo[i][j] == 'M' or photo[i][j] == 'Y':
				return '#Color'
	return '#Black&White'
(n, m) = [int(elem) for elem in input().split()]
photo = ['0'] * n
for i in range(n):
	photo[i] = input().split()
print(check(photo))


(n, m) = map(int, input().split())
clr = []
for _ in range(n):
	clr += input().split()
if 'C' in clr or 'M' in clr or 'Y' in clr:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
photo_pixels = list()
coloures_photo = ['C', 'M', 'Y']
counter = 0
for i in range(n):
	photo_pixels.append(str(input()).split())
for i in photo_pixels:
	for q in coloures_photo:
		if q in i:
			counter += 1
print('#Color' if counter > 0 else '#Black&White')


(n, m) = map(int, input().split())
for i in range(n):
	x = input()
	if (x.count('C') or x.count('M') or x.count('Y')) != 0:
		print('#Color')
		break
	elif i == n - 1 and (x.count('C') or x.count('M') or x.count('Y')) == 0:
		print('#Black&White')


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


import re
num = input()
arr1 = []
counting = 0
for m in range(0, len(num)):
	if num[m] == ' ':
		arr1.append(int(num[counting:m]))
		counting = m + 1
	elif m == len(num) - 1:
		arr1.append(int(num[counting:len(num)]))
i = 0
num1 = list()
while i < arr1[0]:
	num1.append(input())
	i += 1
color = 'CMY'
black_white = 'WGB'
check = False
for i in num1:
	for j in i:
		x = re.search(j, color)
		if x:
			check = True
			break
	if check == True:
		break
if check is True:
	print('#Color')
else:
	print('#Black&White')


import sys
temp = input()
n = int(temp.split(' ')[0])
while n > 0:
	n -= 1
	c = input()
	arr = c.split(' ')
	for e in arr:
		if e == 'C' or e == 'M' or e == 'Y':
			print('#Color')
			sys.exit(0)
print('#Black&White')
sys.exit(0)


(n, m) = map(int, input().split())
colors = {'C': 0, 'M': 0, 'Y': 0, 'W': 0, 'B': 0, 'G': 0}
for i in range(n):
	x = [str(c) for c in input().split()]
	for c in x:
		colors[c] += 1
if colors['C'] == 0 and colors['Y'] == 0 and (colors['M'] == 0):
	print('#Black&White')
else:
	print('#Color')


(a, b) = input().split()
a = int(a)
list = []
for i in range(a):
	x = input().split()
	if 'C' in x or 'M' in x or 'Y' in x:
		list.append(0)
if len(list) > 0:
	print('#Color')
else:
	print('#Black&White')


n = input()
n = n.split()
c = int(n[0])
t = 0
for i in range(c):
	ph = input()
	if 'C' in ph or 'M' in ph or 'Y' in ph:
		t += 1
if t > 0:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
sum = 0
for i in range(a):
	l = list(map(str, input().split()))
	for j in range(len(l)):
		if l[j] == 'Y' or l[j] == 'C' or l[j] == 'M':
			sum = 1
if sum > 0:
	print('#Color')
else:
	print('#Black&White')


a = input().split()
b = [input().split() for i in range(int(a[0]))]
new_b = [j for i in b for j in i]
newer_b = set(new_b)
colour = {'C', 'M', 'Y'}
i = 0
while i < len(newer_b):
	if list(newer_b)[i] in colour:
		print('#Color')
		break
	else:
		i += 1
else:
	print('#Black&White')


o = list(map(int, input().split()))
for i in range(o[0]):
	c = input().split()
	for t in c:
		if t == 'M' or t == 'Y' or t == 'C':
			print('#Color')
			quit()
print('#Black&White')


(n, m) = map(int, input().strip().split()[:2])
k = []
for x in range(n):
	k.append(input().strip().split()[:m])
for x in k:
	if 'C' in x or 'M' in x or 'Y' in x:
		print('#Color')
		break
else:
	print('#Black&White')


l = []
y = input().split()
for _ in range(int(y[0])):
	inp = input().split()
	for x in inp:
		l.append(x)
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(a, b) = list(map(int, input().split()))
lp = []
for i in range(a):
	l = list(map(str, input().split()))
	for i in l:
		lp.append(i.lower())
s = list(set(sorted(lp)))
if 'c' in s or 'y' in s or 'm' in s:
	print('#Color')
else:
	print('#Black&White')


nmStr = input()
n = int(nmStr.split()[0])
m = int(nmStr.split()[1])
color = False
for i in range(n):
	pixelLine = input()
	pixel = pixelLine.split()
	for j in range(m):
		if pixel[j] != 'B' and pixel[j] != 'W' and (pixel[j] != 'G') and (not color):
			color = True
if not color:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
lis = []
for i in range(n):
	lis += [x for x in input().split()]
if lis.count('B') + lis.count('W') + lis.count('G') == len(lis):
	print('#Black&White')
else:
	print('#Color')


inp = input().split()
n = int(inp[0])
m = int(inp[1])
arr = []
for j in range(n):
	arr.append(input().split())
flag = True
for i in range(n):
	for j in range(m):
		if arr[i][j] == 'C' or arr[i][j] == 'M' or arr[i][j] == 'Y':
			flag = False
	if flag == False:
		break
if flag == False:
	print('#Color')
else:
	print('#Black&White')


(row, col) = map(int, input().split())
l = []
for _ in range(row):
	ipt = input().split()
	for e in ipt:
		l.append(e)
for p in l:
	if p == 'C' or p == 'Y' or p == 'M':
		print('#Color')
		break
else:
	print('#Black&White')


import sys
(n, m) = map(int, input().split())
for i in range(n):
	t = sys.stdin.readline().split()
	if 'C' in t or 'M' in t or 'Y' in t:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
f = 1
for i in range(n):
	for j in input().split():
		if j != 'W' and j != 'B' and (j != 'G'):
			f = 0
print('#Color') if not f else print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	for j in input().split():
		a.append(j)
if set(a) <= set('WGB'):
	print('#Black&White')
else:
	print('#Color')


c = []
k = []
a = list(map(int, input().split()))

def khat():
	b = list(map(str, input().split()))
	c.append(b)
for i in range(a[0]):
	khat()
for i in range(len(c)):
	if 'M' in c[i] or 'Y' in c[i] or 'C' in c[i]:
		k.append(1)
	else:
		k.append(0)
if 1 in k:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
x = ''
for i in range(n):
	x += input()
if x.find('Y') != -1 or x.find('C') != -1 or x.find('M') != -1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())

def BP(a):
	for i in range(a):
		c = input().split()
		for j in range(b):
			if c[j] == 'C' or c[j] == 'M' or c[j] == 'Y':
				return '#Color'
	return '#Black&White'
print(BP(a))


(n, m) = map(int, input().split())
flag = 0
for i in range(0, n):
	a = list(map(str, input().split()))
	z = a.count('C')
	x = a.count('M')
	y = a.count('Y')
	if x >= 1 or y >= 1 or z >= 1:
		flag = 1
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


d = {'C': 1, 'M': 1, 'Y': 1, 'W': 0, 'B': 0, 'G': 0}
(m, n) = map(int, input().split())
a = []
for i in range(m):
	a.append([str(x) for x in input().split()])
for i in range(len(a)):
	for j in range(len(a[i])):
		a[i][j] = d[a[i][j]]
s = 0
for i in range(len(a)):
	s += sum(a[i])
if s != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
matrix = []
for _ in range(n):
	arr = list(map(str, input().split()))
	matrix.append(arr)
cnt = 0
for i in range(n):
	for j in range(m):
		if matrix[i][j] == 'C' or matrix[i][j] == 'M' or matrix[i][j] == 'Y':
			cnt += 1
		else:
			continue
if cnt == 0:
	print('#Black&White')
else:
	print('#Color')


myList = map(int, input().split())
myList = list(myList)
temp = True
for i in range(myList[0]):
	n = input().split()
	for i in n:
		if i != 'W' and i != 'B' and (i != 'G'):
			temp = False
			break
		else:
			continue
print('#Color' if temp == False else '#Black&White')


(a, b) = map(int, input().split())
z = 0
l = []
while z < a:
	columns = b
	for columns in map(str, input().split()):
		l.append(columns)
	z += 1
if 'C' in l:
	print('#Color')
elif 'M' in l:
	print('#Color')
elif 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
t = 'CMY'
l = 0
for i in range(n):
	s = input()
	for j in t:
		if s.count(j) > 0:
			print('#Color')
			l = 1
			break
	if l == 1:
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
bw = ('B', 'W', 'G')
s = ''
for i in range(n):
	k = input()
	s += k
if 'M' in s or 'C' in s or 'Y' in s:
	print('#Color')
else:
	print('#Black&White')


(n, _) = map(int, input().split())
print(['#Black&White', '#Color'][any(([True for x in input() if x in {'C', 'M', 'Y'}] for _ in range(n)))])


(x, y) = map(int, input().split())
letter = ['C', 'M', 'Y']
d = 0
for i in range(0, x):
	t = input().split()
	for j in t:
		if j in letter:
			d += 1
if d == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
kek = ''
rgb = ['C', 'M', 'Y']
for i in range(n):
	a1 = list(map(str, input().split()))
	if rgb[0] in a1 or rgb[1] in a1 or rgb[2] in a1:
		kek += '#Color'
	else:
		kek += '#Black&White'
if '#Color' in kek:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
ans = '\n'.join((input() for i in range(a)))
ans = set(ans)
if set('CMY') & ans:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
color = 1
for i in range(m):
	a = input()
	if a.count('W') + a.count('B') + a.count('G') != n:
		color = 0
print(['#Color', '#Black&White'][color])


(n, m) = map(int, input().split())
f = 0
for _ in range(n):
	s = input().split()
	if 'C' in s or 'M' in s or 'Y' in s:
		f = 1
		break
if f == 0:
	print('#Black&White')
else:
	print('#Color')


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')
			exit(0)
print('#Black&White')


(ns, ks) = map(int, input().split(' '))
strs = 'CMY'
sums = 0
for i in range(ns):
	ks = input().split(' ')
	for j in range(len(ks)):
		if ks[j] in strs:
			sums += 1
		else:
			sums += 0
if sums > 0:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
d = 0
while a > 0:
	c = input().split()
	if 'C' in c or 'M' in c or 'Y' in c:
		d += 1
	a -= 1
if d > 0:
	print('#Color')
else:
	print('#Black&White')


def solve(c):
	for color in c:
		for i in range(len(color)):
			if color[i] == 'C' or color[i] == 'M' or color[i] == 'Y':
				return '#Color'
	return '#Black&White'
(n, m) = map(int, input().split())
c = []
for _ in range(n):
	c.append(input())
print(solve(c))


print('#Color' if len(set(' '.join((input() for _ in range(int(input().split()[0]))))).intersection({'C', 'M', 'Y'})) else '#Black&White')


(n, m) = map(int, input().split())
a = []
flag = False
for i in range(n):
	a.append(input().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':
			flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


(x, y) = [int(x) for x in input().split()]
for i in range(x):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		print('#Color')
		exit()
print('#Black&White')


from sys import *
(m, n) = (int(z) for z in input().split())
s = []
d = {'C', 'M', 'Y'}
for i in range(m):
	s.append(input())
for i in range(m):
	for j in s[i]:
		if j in d:
			print('#Color')
			exit(0)
print('#Black&White')


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


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


from sys import stdin
(i, j) = [int(i) for i in stdin.readline().split()]
res = '#Black&White'
for i in range(i):
	l = [a for a in stdin.readline().split()]
	for j in l:
		if j in ('C', 'M', 'Y'):
			res = '#Color'
print(res)


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


(n, m) = [int(x) for x in input().split()]
b = list()
for i in range(n):
	a = list(map(str, input().split()))
	b = b + a
if 'C' in b or 'M' in b or 'Y' in b:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
check = 0
for _ in range(n):
	q = input().split()
	for i in q:
		if i != 'W' and i != 'B' and (i != 'G'):
			check = 1
			break
	if check:
		break
print(['#Black&White', '#Color'][check])


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


(n, m) = input().split()
n = int(n)
m = int(m)
l = []
flag = False
for i in range(n):
	l1 = [x for x in input().split()]
	l.append(l1)
for i in range(n):
	for j in range(m):
		if l[i][j] == 'C' or l[i][j] == 'M' or l[i][j] == 'Y':
			flag = True
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


nums = input().split()
colors = 'CMY'
blackxcol = 'WGB'
ans_colors = 0
ans_black = 0
for i in range(int(nums[0])):
	str1 = input()
	for i in str1:
		if i in colors:
			ans_colors += 1
		if i in blackxcol:
			ans_black += 1
if ans_colors != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(lambda x: int(x), input().split())
p = False
for i in range(n):
	f = input()
	list = [i for i in f.split()]
	for i in list:
		if i == 'C' or i == 'M' or i == 'Y':
			p = True
if p == True:
	print('#Color')
else:
	print('#Black&White')


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


(n, m) = map(int, str.split(input()))
for _ in range(n):
	s = input()
	for color in 'CMY':
		if color in s:
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
s = 0
for i in range(n):
	a.append(input().split())
for i in range(n):
	for j in range(m):
		if a[i][j] in 'CMY':
			s += 1
if s > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
picture = []
test = 0
for i in range(n):
	pixel = input().split()
	picture.append(pixel)
for i in range(n):
	if 'C' in picture[i] or 'M' in picture[i] or 'Y' in picture[i]:
		test += 1
		break
	else:
		test += 0
if test == 0:
	print('#Black&White')
else:
	print('#Color')


def main():
	(n, m) = map(int, input().split())
	colors = set('CMY')
	for _ in range(n):
		row = input()
		for c in row:
			if c in colors:
				print('#Color')
				return
	print('#Black&White')
	return
main()


(rows, cols) = input().split()
fila = []
aColor = False
colors = ['C', 'M', 'Y']
for x in range(int(rows)):
	fila = list(input().split())
	for y in range(int(cols)):
		elemento = fila[y]
		if elemento == colors[0] or elemento == colors[1] or elemento == colors[2]:
			aColor = True
		if aColor:
			break
	if aColor:
		break
if aColor:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
flag = 0
for i in range(n):
	l = list(input().split())
	if 'C' in l or 'Y' in l or 'M' in l:
		flag = 1
		break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
arr = []
for i in range(n):
	arr.append([j for j in input().split()])
for i in arr:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			exit()
print('#Black&White')


import re
try:
	while True:
		(n, m) = map(int, input().split())
		result = '#Black&White'
		for i in range(n):
			if re.search('[CMY]', input()) is not None:
				result = '#Color'
		print(result)
except EOFError:
	pass


import sys
import math
import os
(n, m) = sys.stdin.readline().split()
(n, m) = (int(n), int(m))
stringy = '#Black&White'
for x in range(n):
	temp = sys.stdin.readline().split()
	for y in temp:
		if y not in ['W', 'B', 'G']:
			stringy = '#Color'
			break
print(stringy)


(a, b) = map(int, input().split())
arr = []
c = 0
for _ in range(a):
	arr.append(input().split())
l = [j for sub in arr for j in sub]
for i in l:
	if i == 'W' or i == 'B' or i == 'G':
		c += 1
if c == len(l):
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(i) for i in input().split(' ')]
matrix = ''.join([input() for _ in ' ' * n])
if 'C' in matrix or 'M' in matrix or 'Y' in matrix:
	print('#Color')
else:
	print('#Black&White')


Arr = input()
row = input()
list_Row = row.split()
List = Arr.split()
for R in range(int(List[0]) - 1):
	n = input().split()
	list_Row += n
Color = '#Black&White'
for P in list_Row:
	if P == 'C' or P == 'M' or P == 'Y':
		Color = '#Color'
print(Color)


(r, c) = map(int, input().split())
arr = []
ws = []
for i in range(r):
	arr.append(input().split())
for i in range(r):
	for j in range(c):
		if arr[i][j] == 'C' or arr[i][j] == 'Y' or arr[i][j] == 'M':
			ws.append(arr[i][j])
		else:
			ws.append(arr[i][j])
for i in range(len(ws)):
	if ws[i] == 'C' or ws[i] == 'Y' or ws[i] == 'M':
		print('#Color')
		break
else:
	print('#Black&White')


color = ('C', 'Y', 'M')
dims = input()
data = []
for i in range(int(dims[0])):
	data.append(input().split())
result = '#Black&White'
for i in data:
	for j in i:
		if j in color:
			result = '#Color'
			break
print(result)


(n, m) = input().split(' ')
n = int(n)
m = int(m)
f = True
for j in range(n):
	s = input().replace(' ', '')
	for i in s:
		if not (i == 'W' or i == 'B' or i == 'G'):
			print('#Color')
			f = 0
			break
	if not f:
		break
if f:
	print('#Black&White')


lst1 = input().split()
(n, m) = (int(lst1[0]), int(lst1[1]))
lst2 = [[0] * m for i in range(n)]
for i in range(n):
	lst2[i] = input().split()
flag = 1
for i in lst2:
	for j in i:
		if j in 'CMY':
			flag = 0
			break
if flag == 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
matrix = [[0 for x in range(m)] for y in range(n)]
for i in range(n):
	z = input()
	for j in range(m):
		matrix[i] = z.split()
for i in range(n):
	for j in range(m):
		if matrix[i][j] == 'C' or matrix[i][j] == 'Y' or matrix[i][j] == 'M':
			print('#Color')
			break
	if matrix[i][j] == 'C' or matrix[i][j] == 'Y' or matrix[i][j] == 'M':
		break
if matrix[i][j] == 'G' or matrix[i][j] == 'W' or matrix[i][j] == 'B':
	print('#Black&White')


(n, m) = map(int, input().split())
for i in range(n):
	a = input().split()
	for j in a:
		if j not in 'WBG':
			print('#Color')
			exit()
print('#Black&White')


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


(m, n) = map(int, input().split())
ans = '#Black&White'
for i in range(m):
	color = list(map(str, input().split()))
	for a in color:
		if a != 'W' and a != 'B' and (a != 'G'):
			ans = '#Color'
			break
print(ans)


(n, m) = [int(i) for i in input().split()]
p = True
for i in range(n):
	for m in input().split():
		if m not in 'WGB':
			print('#Color')
			exit()
print('#Black&White')


(rows, cols) = input().split(' ')
rows = int(rows)
cols = int(cols)
color = ''
colors = ['C', 'M', 'Y']
for r in range(rows):
	if color == '#Color':
		break
	cols = input().split(' ')
	for col in cols:
		if col in colors:
			color = '#Color'
if color == '':
	color = '#Black&White'
print(color)


(n, m) = map(int, input().split())
q = []
for i in range(n):
	s = input().split()
	q.extend(s)
q = set(q)
if q == {'W'} or q == {'B'} or q == {'G'} or (q == {'B', 'W'}) or (q == {'B', 'G'}) or (q == {'G', 'W'}) or (q == {'B', 'W', 'G'}):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
check = 0
for nn in range(n):
	seq = input().split(' ')
	for s in seq:
		if s in 'CMY':
			check = 1
if check == 0:
	print('#Black&White')
else:
	print('#Color')


import sys
from bisect import bisect_left, bisect_right
from collections import deque, Counter
from math import gcd, sqrt, factorial, ceil, log10
from itertools import permutations
inf = float('inf')
mod = 1000000007
mini = 1000000007

def ncr(n, r):
	d = 10 ** 9 + 7
	num = fact(n)
	den = fact(r) * fact(n - r) % d
	den = pow(den, d - 2, d)
	return num * den % d

def sieve(n):
	prime = [True for i in range(n + 1)]
	lst = []
	p = 2
	while p * p <= n:
		if prime[p]:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p = p + 1
	for i in range(2, n + 1):
		if prime[i]:
			lst.append(i)
	return lst

def binary(number):
	result = 0
	while number:
		result = result + 1
		number = number & number - 1
	return result

def calculate_factors(n):
	hh = [1] * (n + 1)
	p = 2
	while p * p < n:
		if hh[p] == 1:
			for i in range(p * 2, n, p):
				hh[i] = 0
		p += 1
	total = 1
	for p in range(2, n + 1):
		if hh[p] == 1:
			count = 0
			if n % p == 0:
				while n % p == 0:
					n = int(n / p)
					count += 1
				total *= count + 1
	return total

def prime_factors(n):
	i = 2
	factors = set()
	while i * i <= n:
		if n % i:
			i += 1
		else:
			factors.add(n // i)
			n = n // i
			factors.add(i)
	if n > 1:
		factors.add(n)
	return factors

def isPrime(n):
	if n == 2 or n == 3:
		return True
	if n % 2 == 0 or n < 2:
		return False
	for i in range(3, int(n ** 0.5) + 1, 2):
		if n % i == 0:
			return False
	return True

def solve(n):
	if n == 1:
		return 1
	p = 2
	while p * p <= n:
		if n % p == 0:
			return n // p
		p = p + 1
	return False

def expo(x, n):
	result = 1
	while n > 1:
		if n & 1:
			n = n - 1
			result = result * x
		else:
			n = n // 2
			x = x * x
	return result * x

def get_array():
	return list(map(int, sys.stdin.readline().strip().split()))

def get_ints():
	return map(int, sys.stdin.readline().strip().split())

def input():
	return sys.stdin.readline().strip()
(n, m) = get_ints()
flag = 0
myset = {'C', 'M', 'Y'}
Mat = []
for i in range(n):
	Arr = list(input().split())
	Mat.append(Arr)
for i in range(n):
	for j in range(m):
		if Mat[i][j] in myset:
			flag = 1
			break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
f = False
a = [list(map(str, input().split())) for i in range(n)]
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':
			f = True
			break
if f == True:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split(' '))
c = [input().split(' ') for i in range(m)]
colors = []
for i in c:
	for j in i:
		colors.append(j)
if colors.count('C') == 0 and colors.count('M') == 0 and (colors.count('Y') == 0):
	print('#Black&White')
else:
	print('#Color')


table = list(map(int, input().split(' ')))
rows = table[0]
cols = table[1]
count = 0
total = rows * cols
while rows != 0:
	l = list(map(str, input().split(' ')))
	for i in range(0, cols):
		if l[i] == 'W' or l[i] == 'B' or l[i] == 'G':
			count += 1
	rows -= 1
if count == total:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
ar = [input().split() for i in range(n)]
b = 0
for i in range(n):
	for j in range(m):
		if ar[i][j] in 'CMY':
			b = 1
if b:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split(' '))
li = []
for _ in range(n):
	li2 = input().split(' ')
	for d in li2:
		if d not in li:
			li.append(d)
li.sort()
if 'C' not in li and 'M' not in li and ('Y' not in li):
	print('#Black&White')
else:
	print('#Color')


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


import sys
numbers = list(map(int, input().split()))
n = numbers[0]
count_colors = numbers[1]
blackcolors = ['W', 'G', 'B']
answer = '#Black&White'
statsus_continue = True
while n > 0:
	colors = list(map(str, input().split()))
	if statsus_continue:
		for color in colors:
			if color not in blackcolors:
				answer = '#Color'
				statsus_continue = False
	n = n - 1
print(answer)


dimensions = list(map(int, input().split()))
n = dimensions[0]
m = dimensions[1]
colored = False
for _ in range(0, n):
	colors = list(map(str, input().split()))
	if 'C' in colors:
		print('#Color')
		colored = True
		break
	if 'M' in colors:
		print('#Color')
		colored = True
		break
	if 'Y' in colors:
		print('#Color')
		colored = True
		break
if colored is False:
	print('#Black&White')


(n, m) = map(int, input().split())
v = 0
p = ''
for i in range(n):
	x = input()
	p = p + x
p = p.replace(' ', '')
for i in p:
	if i != 'B' and i != 'W' and (i != 'G'):
		v = 1
		break
if v:
	print('#Color')
else:
	print('#Black&White')


import math
input_l = input().split()
n = int(input_l[0])
result = False
for i in range(n):
	input_s = input()
	if input_s.find('C') >= 0 or input_s.find('M') >= 0 or input_s.find('Y') >= 0:
		result = True
print('#Color' if result else '#Black&White')


inp = input().split()
x = int(inp[1])
y = int(inp[0])
answer = '#Black&White'
for i in range(y):
	row = input().split()
	for j in range(x):
		color = row[j]
		if not (color == 'W' or color == 'B' or color == 'G'):
			answer = '#Color'
			break
print(answer)


(n, m) = map(int, input().split())
a = []
c = 0
color = 'CMY'
for i in range(n):
	a.append(list(input().replace(' ', '')))
for i in range(n):
	for j in range(m):
		if a[i][j] in color:
			c += 1
	print()
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
clr = 0
bw = 0
for i in range(n):
	s = input().split()
	if 'C' in s or 'M' in s or 'Y' in s:
		clr += 1
	if 'W' in s or 'G' in s or 'B' in s:
		bw += 1
if clr == 0 and bw > 0:
	print('#Black&White')
if clr > 0:
	print('#Color')


(n, n2) = map(int, input().split(' '))
ans = '#Black&White'
for i in range(n):
	s = list(map(str, input().split()))
	for i in s:
		if i == 'Y' or i == 'C' or i == 'M':
			ans = '#Color'
print(ans)


line = [int(i) for i in input().split()]
ans = True
for a in range(line[0]):
	cur = input().split()
	for b in cur:
		if b != 'B' and b != 'W' and (b != 'G'):
			ans = False
if ans:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
matrix = []
k = 0
for i in range(n):
	line = input().split()
	matrix += line
matrix.sort()
matrix = set(matrix)
true = {'B', 'W', 'G'}
for i in matrix:
	if i not in true:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = input().split(' ')
n = int(n)
m = int(m)
a = True
for i in range(n):
	z = input()
	y = z.count('C') + z.count('Y') + z.count('M')
	if y != 0:
		a = False
if a:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(a) for a in input().split(' ')]
answer = '#Black&White'
for r in range(n):
	row = input().split(' ')
	if 'C' in row or 'M' in row or 'Y' in row:
		answer = '#Color'
		break
print(answer)


(n, m) = map(int, input().split())
a = []
stroka = 0
for i in range(n):
	str = input()
	a.append(list(str))
for i in range(n):
	if 'C' not in a[i] and 'M' not in a[i] and ('Y' not in a[i]):
		stroka += 1
if stroka == n:
	print('#Black&White')
else:
	print('#Color')


def main():
	from re import search
	[height, width] = map(int, input().split())
	is_colored = False
	for i in range(height):
		if is_colored:
			input()
		else:
			is_colored = search('[CMY]', input()) is not None
	print('#Color' if is_colored else '#Black&White')
main()


(n, m) = map(int, input().split())
l = []
r = 0
for i in range(n):
	l.append(list(input().split()))
for i in range(n):
	for j in range(m):
		if l[i][j] != 'B' and l[i][j] != 'W' and (l[i][j] != 'G'):
			r = 1
			break
if r == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
(C, M, Y, W, G, B) = (0, 0, 0, 0, 0, 0)
for _ in range(n):
	colour = [str(i) for i in input().split()]
	C += colour.count('C')
	M += colour.count('M')
	Y += colour.count('Y')
	W += colour.count('W')
	G += colour.count('G')
	B += colour.count('B')
if C > 0 or M > 0 or Y > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	temp = list(input().split())
	a.append(temp)
flag = 0
for i in range(n):
	for j in range(m):
		if a[i][j] != 'B' and a[i][j] != 'W' and (a[i][j] != 'G'):
			flag = 1
			print('#Color')
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
l = ['W', 'B', 'G']
l1 = ['M', 'C', 'Y']
z = []
for i in range(n):
	b = list(map(str, input().split()))
	z.append(b)
s = 0
p = 0
for i in range(n):
	for j in range(m):
		if z[i][j] in l:
			s = s + 1
		if z[i][j] in l1:
			p = p + 1
if p == 0:
	print('#Black&White')
if p != 0:
	print('#Color')


def main():
	(n, m) = map(int, input().split())
	arr = []
	for i in range(n):
		t = list(map(str, input().split()))
		for j in range(m):
			x = t[j]
			arr.append(x)
	if arr.count('W') + arr.count('G') + arr.count('B') == n * m:
		print('#Black&White')
	else:
		print('#Color')
main()


(n, m) = map(int, input().split())
a = [list(map(str, input().split())) for i in range(n)]
for i in range(n):
	if 'C' in a[i] or 'M' in a[i] or 'Y' in a[i]:
		print('#Color')
		break
	for j in range(m):
		if i == n - 1 and j == m - 1:
			print('#Black&White')


(n, m) = list(map(int, input().split()))
kek = 'CMY'
for i in range(n):
	s = input()
	for ch in list(kek):
		if ch in s:
			print('#Color')
			exit(0)
print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	a = input()
	if 'C' in a or 'M' in a or 'Y' in a:
		print('#Color')
		exit()
print('#Black&White')


(r, c) = map(int, input().split())
m = []
f = 1
for i in range(r):
	m.append(input().split())
for i in range(len(m)):
	if 'C' in m[i] or 'M' in m[i] or 'Y' in m[i]:
		f = 0
		break
if f == 1:
	print('#Black&White')
else:
	print('#Color')


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


(x, y) = map(int, input().split(' '))
colors = list()
for i in range(0, x):
	column_values = input().split(' ')
	for j in column_values:
		colors.append(j)
for color in colors:
	if color is 'C' or color is 'M' or color is 'Y':
		print('#Color')
		exit()
print('#Black&White')


(n, m) = list(map(int, input().split()))
matrix = []
for i in range(n):
	pixel = input().split()
	matrix.append(pixel)
is_black = True
for row in matrix:
	for col in row:
		if col == 'C' or col == 'M' or col == 'Y':
			is_black = False
if is_black:
	print('#Black&White')
else:
	print('#Color')


a = list(map(int, input().strip().split()))[:2]
m = a[0]
n = a[1]
x = ['0'] * m
check_arr = ['C', 'M', 'Y']
flag = 0
for i in range(m):
	x[i] = list(map(str, input().strip().split()))[:n]
for i in range(m):
	for j in range(n):
		if x[i][j] in check_arr:
			flag = 1
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(row, col) = input().split()
(row, col) = (int(row), int(col))
mat = []
for i in range(row):
	mat.append(list(map(str, input().split()))[:col])
found = False
for i in range(row):
	for j in range(col):
		if mat[i][j] == 'C' or mat[i][j] == 'M' or mat[i][j] == 'Y':
			found = True
			break
	if found:
		break
if found:
	print('#Color')
else:
	print('#Black&White')


from collections import defaultdict

def main():
	(n, m) = map(int, input().split())
	d = defaultdict(int)
	for i in range(n):
		r = input().split()
		for k in r:
			d[k] += 1
	if d['C'] or d['M'] or d['Y']:
		print('#Color')
	else:
		print('#Black&White')
main()


(n, m) = map(int, input().split())
p = []
for i in range(n):
	a = list(input().split())
	p.append(a)
col = 0
for j in range(n):
	if 'C' in p[j]:
		col = 1
		break
	elif 'Y' in p[j]:
		col = 1
		break
	elif 'M' in p[j]:
		col = 1
		break
if col == 0:
	print('#Black&White')
else:
	print('#Color')


numbers = [int(n) for n in input().split()]
R = numbers[0]
C = numbers[1]
matrix = []
flag = 0
for i in range(R):
	a = [str(n) for n in input().split()]
	matrix.append(a)
for i in range(R):
	for j in range(C):
		if matrix[i][j] == 'C' or matrix[i][j] == 'M' or matrix[i][j] == 'Y':
			flag = 1
			break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
s = ''
for i in range(n):
	s += ''.join(input().split())
s = set(s)
a = {'Y', 'C', 'M'}
if len(s & a):
	print('#Color')
else:
	print('#Black&White')


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


(n, m) = map(int, input().split())
for i in range(n):
	s = input()
	if s.find('C') != -1 or s.find('M') != -1 or s.find('Y') != -1:
		print('#Color')
		exit(0)
print('#Black&White')


(n, m) = map(int, input().split())
a = []
c = 0
for i in range(n):
	a.append(list(map(str, input().split())))
for i in range(n):
	for j in range(m):
		if a[i][j] == 'C' or a[i][j] == 'Y' or a[i][j] == 'M':
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


c = 0
lst = input()
lst1 = lst.split()
lst1 = [int(x) for x in lst1]
(rows, cols) = lst1
for _ in range(rows):
	s = input()
	chars = s.split()
	for char in chars:
		if char == 'C' or char == 'M' or char == 'Y':
			c = 2
print('#Black&White' if c != 2 else '#Color')


def Colour(m, n, s):
	count = 0
	for i in range(m):
		for j in range(n):
			if s[i][j] == 'W' or s[i][j] == 'B' or s[i][j] == 'G':
				count = count + 1
			else:
				return '#Color'
	if i == m - 1:
		return '#Black&White'
(x, y) = input().split()
s = []
for i in range(int(x)):
	s1 = [n for n in input().split()]
	s.append(s1)
print(Colour(int(x), int(y), s))


mat = list(map(int, input().split()))
n = mat[0]
colour = 0
for i in range(n):
	a = list(map(str, input().split()))
	if 'C' in a or 'M' in a or 'Y' in a:
		colour = 1
if colour == 1:
	print('#Color')
elif colour == 0:
	print('#Black&White')


line = input()
n = int(line.split()[0])
m = int(line.split()[1])
num = 0
for i in range(n):
	line1 = input().split()
	if 'C' in line1 or 'M' in line1 or 'Y' in line1:
		print('#Color')
		break
	else:
		num += 1
if num == n:
	print('#Black&White')


(a, b) = map(int, input().split())
l = []
for i in range(a):
	ch = input()
	l.append(ch)
i = 0
t = True
while t == True and i < a:
	j = 0
	while j < b:
		if l[i][2 * j] != 'W' and l[i][2 * j] != 'B' and (l[i][2 * j] != 'G'):
			t = False
			break
		j = j + 1
	i = i + 1
if t == True:
	print('#Black&White')
else:
	print('#Color')


px = input().split(' ')
pxn = []
for p in px:
	pxn.append(int(p))
color = []
for i in range(pxn[0]):
	color.append(input().split(' '))
for i in range(pxn[0]):
	if 'C' in color[i] or 'Y' in color[i] or 'M' in color[i]:
		print('#Color')
		break
	elif i < pxn[0] - 1:
		continue
	if i == pxn[0] - 1:
		print('#Black&White')


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


(n, m) = map(int, input().split())
full = [0] * n
stop = 0
for i in range(n):
	full[i] = list(map(str, input().split()))
	for j in range(m):
		for k in full[i][j]:
			if k == 'C' or k == 'M' or k == 'Y':
				print('#Color')
				quit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	l = input()
	b = l.split()
	for j in b:
		a.append(j)
if 'M' in a or 'C' in a or 'Y' in a:
	print('#Color')
else:
	print('#Black&White')


(N, M) = map(int, input().split())
m = []
otv = 0
for i in range(N):
	a = input()
	a = a.split()
	m.append(a)
for i in m:
	if 'C' in i or 'M' in i or 'Y' in i:
		otv = otv + 1
if otv == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
matrix = []
for i in range(n):
	raw = list(map(str, input().split()))
	matrix.append(raw)
for i in matrix:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			exit()
print('#Black&White')


s = input().split()
result = ''
for i in range(int(s[0])):
	t = input().split()
	if 'M' in t or 'C' in t or 'Y' in t:
		result = '#Color'
		break
	else:
		result = '#Black&White'
print(result)


(n, m) = map(int, input().split())
bool = 0
for i in range(n):
	list1 = input().split()
	if 'C' in list1 or 'M' in list1 or 'Y' in list1:
		bool = 1
		print('#Color')
		break
if bool == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	li = list(input().split())
	for i in li:
		if i == 'W' or i == 'B' or i == 'G':
			continue
		else:
			print('#Color')
			exit()
print('#Black&White')


def photos(arr):
	for i in range(len(arr)):
		for j in range(len(arr[i])):
			if arr[i][j] == 'C' or arr[i][j] == 'M' or arr[i][j] == 'Y':
				return '#Color'
	return '#Black&White'
(m, n) = map(int, input().split())
arr = []
flag = 0
for i in range(m):
	color = input().split()
	arr.append(color)
out = photos(arr)
print(out)


def answer():
	a = input().split()
	a = [int(x) for x in a]
	m = a[0]
	n = a[1]
	i = 0
	done = 0
	ans = '#Black&White'
	while i < m:
		b = input().split()
		if done == 0:
			for x in b:
				if x != 'W' and x != 'B' and (x != 'G'):
					ans = '#Color'
					done = 1
		i += 1
	return ans
print(answer())


(n, m) = map(int, input().split())
color = ['C', 'M', 'Y']
y = []
blackwhite = ['W', 'G', 'B']
for i in range(n):
	y = y + list(input().split())
for i in range(len(y)):
	if y[i] in color:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(input().split())
su = 0
for i in l:
	su += i.count('W') + i.count('B') + i.count('G')
if su == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = input().split()
n = int(n)
s = '#Black&White'
while n:
	l = input().split()
	if 'C' in l or 'M' in l or 'Y' in l:
		s = '#Color'
		break
	n -= 1
print(s)


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


a = input().split(' ')
n = int(a[0])
m = int(a[1])
l = []
for i in range(n):
	if m > 1:
		t = input().split(' ')
		for i in t:
			l.append(i)
	else:
		t = input()
		l.append(t)
if l.count('W') + l.count('B') + l.count('G') == len(l):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
a = []
s = 0
for i in range(n):
	b = map(str, input().split())
	a.append(list(b))
for i in range(n):
	if s > 0:
		break
	else:
		for j in range(m):
			if s > 0:
				break
			elif a[i][j] == 'C' or a[i][j] == 'M' or a[i][j] == 'Y':
				s += 1
if s > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
t = True
for i in range(n):
	a += input().split()
if 'C' in a or 'Y' in a or 'M' in a:
	t = False
if t == True:
	print('#Black&White')
elif t == False:
	print('#Color')


(r, c) = map(int, input().split())
s = ''
for i in range(r):
	s = s + ''.join(input().split())
color = list('CMY')
for a in color:
	if s.count(a) != 0:
		print('#Color')
		exit()
print('#Black&White')


(n, k) = map(int, input().split())
flag = 0
for _ in range(n):
	l = list(map(str, input().split()))
	for i in l:
		if i == 'C' or i == 'M' or i == 'Y':
			flag = 1
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
res = 0
for _ in range(n):
	a = [i for i in input().split()]
	if any([x in a for x in ['C', 'M', 'Y']]):
		res += 1
if res:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
color = ['C', 'M', 'Y']
bandw = ['W', 'B', 'G']
for _ in range(n):
	a = [x for x in input().split()]
	l.append(a)
flag = 0
for x in range(n):
	for y in range(m):
		if l[x][y] in color:
			flag = 1
			break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n1, n2) = list(map(int, input().split(' ')))
c = 0
for i in range(n1):
	l = list(input().split(' '))
	if 'C' in l:
		c = c + 1
	elif 'Y' in l:
		c = c + 1
	elif 'M' in l:
		c = c + 1
if c >= 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
d = 0
for i in range(n):
	color = [str(x) for x in input().split()]
	if 'C' in color or 'M' in color or 'Y' in color:
		d += 1
		break
if d == 0:
	print('#Black&White')
if d > 0:
	print('#Color')


(n, m) = map(int, input().split())
img = [list(input().split()) for i in range(n)]
c = 0
m = 0
y = 0
for i in img:
	for u in i:
		if u == 'C':
			c += 1
		if u == 'M':
			m += 1
		if u == 'Y':
			y += 1
if c or m or y:
	print('#Color')
else:
	print('#Black&White')


a = input().strip().split()
n = int(a[0])
m = int(a[1])
color = 0
for i in range(n):
	a = input().strip().split()
	if color == 1:
		continue
	if 'C' in a:
		color = 1
	if 'M' in a:
		color = 1
	if 'Y' in a:
		color = 1
if color == 1:
	print('#Color')
if color == 0:
	print('#Black&White')


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

def f(n):
	for i in range(int(n)):
		s = input()
		if 'C' in s or 'M' in s or 'Y' in s:
			return '#Color'
	return '#Black&White'
print(f(n))


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


(r, c) = map(int, input().split())
cm = list()
cStr = str()
for i in range(r):
	cm.append(list(map(str, input().split())))
for i in cm:
	cStr += ''.join(i)
if 'C' in cStr or 'M' in cStr or 'Y' in cStr:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split(' '))
pixel = ''
for i in range(n):
	pixel += input()
if pixel.count('W') + pixel.count('B') + pixel.count('G') == n * m:
	print('#Black&White')
else:
	print('#Color')


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


(n, m) = map(int, input().split())
ans = '#Black&White'
for i in range(n):
	lst = input().split()
	for i in lst:
		if i != 'W' and i != 'B' and (i != 'G'):
			ans = '#Color'
print(ans)


(n, m) = input().split(' ')
n = int(n)
m = int(m)
flag = 1
for i in range(n):
	list = [str(i) for i in input().split(' ')]
	if 'C' in list:
		flag = 0
	if 'Y' in list:
		flag = 0
	if 'M' in list:
		flag = 0
if flag == 0:
	print('#Color')
if flag == 1:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
for _ in range(n):
	for k in input().split():
		l.append(k)
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
BW = True
for i in range(n):
	color = [str(x) for x in input().split()]
	if 'C' in color or 'M' in color or 'Y' in color:
		BW = False
if BW == True:
	print('#Black&White')
else:
	print('#Color')


rowscols = input().split()
rowscols = [int(i) for i in rowscols]
rows = rowscols[0]
colors = ['C', 'M', 'Y']
color_check = []
for i in range(0, rows):
	temp = input().split()
	if bool(set(temp) & set(colors)):
		color_check.append(True)
	else:
		color_check.append(False)
if any(color_check):
	print('#Color')
else:
	print('#Black&White')


def main():
	(n, m) = [int(s) for s in input().split(' ')]
	for i in range(n):
		row = list(input())
		for c in row:
			if c in ['C', 'M', 'Y']:
				print('#Color')
				return
	print('#Black&White')
main()


(n, m) = map(int, input().split())
b = []
for i in range(n):
	a = input().split()
	b.append(a)
s = 0
for i in range(n):
	if s == 1:
		break
	for j in range(m):
		if b[i][j] == 'W' or b[i][j] == 'B' or b[i][j] == 'G':
			s = 0
		else:
			s = 1
			break
if s == 0:
	print('#Black&White')
else:
	print('#Color')


colour = False
(a, b) = input().split()
(a, b) = (int(a), int(b))
for i in range(a):
	for i in input():
		if i == 'C' or i == 'M' or i == 'Y':
			colour = True
if colour == True:
	print('#Color')
else:
	print('#Black&White')


(h, w) = map(int, input().split())
is_bw = True
for _ in range(h):
	for ch in input().split():
		if ch in ['C', 'M', 'Y']:
			print('#Color')
			is_bw = False
			break
	if not is_bw:
		break
else:
	print('#Black&White')


def bp(colors):
	for color in colors:
		for i in range(0, len(color)):
			if color[i] == 'C' or color[i] == 'M' or color[i] == 'Y':
				return '#Color'
	return '#Black&White'
(n, m) = map(int, input().split())
colors = []
for _ in range(0, n):
	colors.append(input())
print(bp(colors))


(n, m) = map(int, input().split())
a = 0
for i in range(n):
	s1 = list(input())
	for i in range(len(s1)):
		if s1[i] == 'G' or s1[i] == 'B' or s1[i] == 'W':
			a += 1
if a == n * m:
	print('#Black&White')
else:
	print('#Color')


(rows, cols) = tuple(map(int, input().split()))
colors = []
for i in range(rows):
	colors += input().split()
colors = set(colors)
color = {'C', 'M', 'Y'}
bw = {'W', 'G', 'B'}
if len(colors.intersection(color)) > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
b = ['C', 'M', 'Y']
c = 0
for i in range(n):
	s = str(input())
	l = list(s)
	for i in l:
		if i in b:
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


import sys
print('#Color' if set('CMY') & set(sys.stdin.read()) else '#Black&White')


import sys
(n, m) = map(int, sys.stdin.readline().strip().split())
colors = {'Y': 0, 'M': 0, 'C': 0}

def solve(n):
	for _ in range(n):
		elements = sys.stdin.readline().strip().split()
		for el in elements:
			if el in colors:
				print('#Color')
				return
	print('#Black&White')
solve(n)


(m, n) = [int(i) for i in input().split()]
t = 0
for i in range(m):
	n = input().split()
	if n.count('C') + n.count('M') + n.count('Y'):
		t = 1
if t:
	print('#Color')
else:
	print('#Black&White')


(x, y) = map(int, input().split())
p = []
c = '#Black&White'
for i in range(x):
	p.append([i for i in input().split()])
for i in p:
	for j in i:
		if j != 'W' and j != 'B' and (j != 'G'):
			c = '#Color'
			break
print(c)


n = input()
n_lst = n.split(' ')
m = int(n_lst[1])
lst = []
for i in range(abs(int(n_lst[0]))):
	lst.append(input().split(' '))
lst1 = []
for element in lst:
	for digit in range(abs(m)):
		lst1 += element[digit]
if 'C' in lst1 or 'Y' in lst1 or 'M' in lst1:
	print('#Color')
else:
	print('#Black&White')


n = input().split()
a = int(n[0])
b = int(n[1])
my_list = []
for i in range(a):
	i = input().split()
	my_list.extend(i)
if 'C' in my_list:
	print('#Color')
elif 'M' in my_list:
	print('#Color')
elif 'Y' in my_list:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
v = 0
for i in range(n):
	x = map(str, input().split())
	x = list(x)
	if 'C' in x or 'M' in x or 'Y' in x:
		v += 1
if v > 0:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
l = []
c = 0
for i in range(a):
	l.append(input().replace(' ', ''))
for i in range(a):
	for j in range(b):
		if l[i][j] == 'C' or l[i][j] == 'M' or l[i][j] == 'Y':
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
(arr, flag) = ([], 0)
for _ in range(n):
	arr.append(list(map(str, input().split())))
for i in arr:
	for j in i:
		if j in ('C', 'M', 'Y'):
			flag = 1
			break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
color = []
for i in range(a):
	c = list(map(str, input().split()))
	color.append(c)
count = 0
for j in range(a):
	if 'C' not in color[j] and 'M' not in color[j] and ('Y' not in color[j]):
		count += 1
if count == a:
	print('#Black&White')
else:
	print('#Color')


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


import sys, math
(n, m) = map(int, input().split())
for i in range(n):
	s = list(map(str, input().split()))
	w = s.count('W')
	b = s.count('B') + s.count('G')
	if w + b != m:
		print('#Color')
		sys.exit(0)
print('#Black&White')


(n, m) = [int(x) for x in input().split(' ')]
color = ['C', 'M', 'Y']
pixels = []
i = 0
while i < n:
	pixels.append(input().split(' '))
	i += 1
bool_color = False
for pix in pixels:
	for p in pix:
		if p in color:
			bool_color = True
if bool_color:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
cnt = 0
for i in range(m):
	a = list(input().split())[0:n]
	cnt += a.count('B') + a.count('W') + a.count('G')
if cnt == m * n:
	print('#Black&White')
else:
	print('#Color')


import sys
import math
input = sys.stdin.readline
(n, m) = map(int, input().split())
ans = False
for _ in range(n):
	line = input()
	if 'C' in line or 'M' in line or 'Y' in line:
		ans = True
if ans:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	for i in input().split():
		if i != 'W' and i != 'B' and (i != 'G'):
			exit(print('#Color'))
print('#Black&White')


from functools import reduce
print(('#Color', '#Black&White')[not {'C', 'M', 'Y'} & reduce(set.union, map(set, (input()[::2] for _ in range(int(input().split()[0])))))])


(r, c) = map(int, input().split())
G = []
colored_pixel = False
for i in range(r):
	G.append(list(input().split()))
	if 'C' in G[-1] or 'M' in G[-1] or 'Y' in G[-1]:
		colored_pixel = True
		break
if not colored_pixel:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
arr = []
for i in range(n):
	c = [j for j in input().split(' ')]
	arr.append(c)
flag = 0
for string in arr:
	if 'C' in string:
		flag = 1
	elif 'M' in string:
		flag = 1
	elif 'Y' in string:
		flag = 1
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


x = input().split()
h = int(x[0])
y = []
while h != 0:
	r = input().split()
	y = y + r
	h = h - 1
w = y.count('W')
b = y.count('B')
g = y.count('G')
c = w + b + g
if c == len(y):
	print('#Black&White')
else:
	print('#Color')


(n, m) = (int(i) for i in input().split())
check = True
for i in range(n):
	s = input()
	for el in s:
		if el not in 'BWG ':
			print('#Color')
			exit(0)
print('#Black&White')


l = []
(n, m) = map(int, input().split())
for i in range(n):
	for x in input().split():
		l.append(x)
if len(set(l) - {'B', 'G', 'W'}) == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = input().split(' ')
l = []
for row in range(0, int(n)):
	j = input().split(' ')
	j = list(j)
	l.append(j)
label = '#Black&White'
for k in l:
	if 'C' in k or 'M' in k or 'Y' in k:
		label = '#Color'
		break
print(label)


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


(n, m) = map(int, input().split())
for i in range(0, n):
	s = input().split()
	for j in range(0, m):
		for c in s:
			if c == 'C' or c == 'M' or c == 'Y':
				print('#Color')
				exit(0)
print('#Black&White')


(a, b) = list(map(int, input().split(' ')))
b = '#Black&White'
for i in range(a):
	s = input().split(' ')
	if 'C' in s or 'M' in s or 'Y' in s:
		b = '#Color'
print(b)


(n, m) = map(int, input().split())
result = False
for i in range(n):
	colours = input().split()
	for c in colours:
		if c not in 'BWG':
			print('#Color')
			result = True
			break
	if result:
		break
else:
	print('#Black&White')


row_number = [int(i) for i in input().split()]
row_count = 0
qwe = 'CMY'
general_list = []
while row_count != row_number[0]:
	general_list += input().split()
	row_count += 1
if any((x in qwe for x in general_list)):
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
arr = []
for _ in range(n):
	temp = list(map(str, input().split()))
	arr += temp
if 'C' in arr or 'M' in arr or 'Y' in arr:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	for z in input().split():
		if 'C' == z or 'M' == z or 'Y' == z:
			m = 0
			break
	if not m:
		break
print('#Black&White' if m else '#Color')


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


(m, n) = input().split()
result = '#Black&White'
for i in range(int(m)):
	for j in input().split():
		if j not in ('B', 'W', 'G'):
			result = '#Color'
print(result)


def solution():
	nm = [int(i) for i in input().rstrip().rsplit()]
	n = nm[0]
	index = 0
	pixel_colors = {'C', 'M', 'Y'}
	while index < n:
		char_set = set(input().rstrip().rsplit())
		if len(pixel_colors.intersection(char_set)) != 0:
			return '#Color'
		index += 1
	return '#Black&White'
res = solution()
print(res)


(n, m) = map(int, input().split())
a = []
for i in range(n):
	k = list(input().split())
	for p in range(m):
		a.append(k[p])
if 'C' in a:
	print('#Color')
elif 'M' in a:
	print('#Color')
elif 'Y' in a:
	print('#Color')
else:
	print('#Black&White')


(x, y) = map(int, input().split())
l = []
z = 0
i = 1
j = 1
while i <= x:
	a = list(map(str, input().split()))
	l.append(a)
	i = i + 1
l2 = []
for i in l:
	l2 = l2 + i
if l2.count('C') + l2.count('M') + l2.count('Y') == 0:
	print('#Black&White')
else:
	print('#Color')


def check_image(image, rows, colomns):
	color_letters = ['C', 'M', 'Y']
	for row_index in range(rows):
		for col_index in range(colomns):
			if image[row_index][col_index] in color_letters:
				print('#Color')
				return
	print('#Black&White')
dims = input()
dims = dims.split(' ')
(rows, colomns) = (int(dims[0]), int(dims[1]))
image = []
for i in range(rows):
	line = input()
	line = line.split(' ')
	image.append(line)
check_image(image, rows, colomns)


(n, m) = map(int, input().split())
for z in range(n):
	c = 0
	a = list(map(str, input().rstrip().split()))
	for x in a:
		if x == 'C' or x == 'Y' or x == 'M':
			c = 1
			break
	if c == 1:
		break
if c == 1:
	print('#Color')
else:
	print('#Black&White')


(n, _m) = map(int, input().split(' '))
for _ in range(n):
	line = input()
	if 'Y' in line or 'M' in line or 'C' in line:
		print('#Color')
		exit(0)
print('#Black&White')


(y, x) = map(int, input().split(' '))
color = False
for i in range(y):
	l = list(input().split(' '))
	for pix in l:
		if pix == 'C' or pix == 'M' or pix == 'Y':
			color = True
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
list1 = [list(input().split()) for x in range(n)]
BW = True
for x in range(n):
	for y in range(m):
		if list1[x][y] == 'B' or list1[x][y] == 'W' or list1[x][y] == 'G':
			continue
		else:
			BW = False
if BW:
	print('#Black&White')
else:
	print('#Color')


import math
import sys
import string

def ri():
	return input()

def ii():
	return int(input())

def li():
	return input().split()

def mi():
	return list(map(int, input().split()))
(n, m) = mi()
p = 'C M Y'.split()
for i in range(n):
	line = ri()
	for j in line:
		if j in p:
			print('#Color')
			exit()
print('#Black&White')


(n, _) = map(int, input().split())
fl = False
for _ in range(n):
	for v in input().split():
		if v in 'CMY':
			print('#Color')
			fl = True
			break
	if fl:
		break
else:
	print('#Black&White')


ll = list(map(int, input().split()))
l = []
for i in range(ll[0]):
	x = list(input().split())
	l.append(x)
a = False
for i in l:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			a = True
			break
if a == True:
	print('#Color')
else:
	print('#Black&White')


import re
YX = input().split()
Color = True
for i in range(int(YX[0])):
	colors = input()
	if re.search('[CMY]', colors):
		Color = False
		break
if Color:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	s = input().split()
	for x in s:
		l.append(x)
f = 0
for i in l:
	if i == 'C' or i == 'M' or i == 'Y':
		f = 1
		break
if f == 0:
	print('#Black&White')
else:
	print('#Color')


a = 'WBG'
b = 'CMY'
colored = False
for i in range(list(map(int, input().split()))[0]):
	line = input().split()
	for word in line:
		if word in b:
			colored = True
			break
print('#Color' if colored else '#Black&White')


import sys
(n1, m1) = input().split()
n = int(n1)
m = int(m1)
for i in range(0, n):
	x = [x for x in input().split()]
	for j in x:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			sys.exit()
else:
	print('#Black&White')


siz = list(map(int, input().split(' ')))
tet = 0
for i in range(siz[0]):
	rw = input().split(' ')
	for each in rw:
		if each in ('C', 'M', 'Y'):
			tet += 1
if tet == 0:
	print('#Black&White')
else:
	print('#Color')


m = ['G', 'W', 'B']
n = ['C', 'Y', 'M']
cnt = 0
count = 0
(t, x) = map(int, input().strip().split())
for i in range(t):
	l = input().split()
	for k in range(x):
		if l[k] in m:
			cnt = cnt + 1
		if l[k] in n:
			count = count + 1
if count >= 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
s = set()
for _ in range(n):
	s.update(input().split(' '))
print('#Color' if len(s.intersection({'C', 'M', 'Y'})) else '#Black&White')


(y, x) = input('').split(' ')
colors = list()
BAWColors = ['B', 'G', 'W']
RAINBOWColors = ['C', 'M', 'Y']
for y in range(int(y)):
	colors.append(input('').split(' '))
for color in range(len(colors)):
	for innerColor in range(int(x)):
		if colors[color][innerColor] in RAINBOWColors:
			print('#Color')
			quit()
print('#Black&White')


def f():
	(x, y) = map(int, input().split())
	folder = []
	for _ in range(x):
		li = list(map(str, input().split()))
		folder += li
	print('#Black&White' if 'Y' not in folder and 'M' not in folder and ('C' not in folder) else '#Color')
f()


t = input().split()
a = int(t[0])
b = int(t[1])
c = ''
p = 0
for i in range(a):
	c = input().split()
	for j in range(b):
		if c[j] == 'C' or c[j] == 'M' or c[j] == 'Y':
			p = 1
if p == 1:
	print('#Color')
elif p == 0:
	print('#Black&White')


(r, c) = [int(i) for i in input().split()]
flag = 0
color = ['C', 'M', 'Y']
for i in range(0, r):
	if sum((1 if a in color else 0 for a in input().split())) > 0:
		print('#Color')
		flag = 1
		break
if flag == 0:
	print('#Black&White')


(times, m) = map(int, input().split())
black = 0
other = 0
for i in range(times):
	listed = list(map(str, input().split()))
	if 'C' in listed or 'M' in listed or 'Y' in listed:
		other = 1
	else:
		black += 1
if black == times:
	print('#Black&White')
else:
	print('#Color')


n = int(input().split()[0])
print('#Color' if True in ['Y' in v or 'M' in v or 'C' in v for v in map(lambda x: input(), range(n))] else '#Black&White')


(n, m) = [int(i) for i in input().split()]
black_and_white = True
for _ in range(n):
	chars = input().split()
	if any((c not in 'BGW' for c in chars)):
		black_and_white = False
		break
print('#Black&White' if black_and_white else '#Color')


import sys
(y, x) = list(map(int, input().split()))
a = []
for i in range(y):
	a = input().split()
	if 'C' in a or 'Y' in a or 'M' in a:
		print('#Color')
		sys.exit()
print('#Black&White')


(n, m) = map(int, input().split())
print(['#Color', '#Black&White'][set(' '.join((input() for _ in range(n))).split()) <= set('BGW')])


(n, m) = map(int, input().split())
info_list = []
color = 'CMY'
bandw = 'WGB'
c = 0
for i in range(n):
	info_list.append(list(map(str, input().split())))
for i in range(n):
	for j in range(m):
		if info_list[i][j] in color:
			c += 1
if c > 0:
	print('#Color')
else:
	print('#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()


(x, y) = map(int, input().split())
s = ''
for i in range(x):
	s += input()
if not 'C' in s and (not 'M' in s) and (not 'Y' in s):
	print('#Black&White')
else:
	print('#Color')


(x, y) = map(int, input().split())
k = 0
for i in range(x):
	lista = input().split()
	for j in range(y):
		if lista[j] == 'W':
			k += 1
		elif lista[j] == 'B':
			k += 1
		elif lista[j] == 'G':
			k += 1
if k == x * y:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
colors = {'C': 0, 'M': 0, 'Y': 0, 'W': 0, 'G': 0, 'B': 0}
for i in range(n):
	l = input().split()
	for j in range(m):
		colors[l[j]] += 1
if colors['C'] > 0 or colors['M'] > 0 or colors['Y'] > 0:
	print('#Color')
else:
	print('#Black&White')


(k, b) = list(map(int, input().split()))
a = set()
for i in range(k):
	a.update(input().split())
if len(a.intersection({'C', 'Y', 'M'})):
	print('#Color')
else:
	print('#Black&White')


import sys
import os
t = sys.stdin.readline()
vals = t.split()
rows = int(vals[0])
cols = int(vals[1])
colors = {'C', 'M', 'Y'}
not_color = True
im_color = '#Black&White'
t = sys.stdin.readline()
while len(t) > 0:
	vals = t.split()
	set_vals = set(vals)
	intersect = set_vals.intersection(colors)
	if len(intersect) > 0:
		im_color = '#Color'
		break
	t = sys.stdin.readline()
print(im_color)


(n, m) = map(int, input().split())
A = [0] * n
for i in range(n):
	A[i] = list(map(str, input().split()))
per = True
for i in range(n):
	for j in range(m):
		if A[i][j] == 'Y' or A[i][j] == 'M' or A[i][j] == 'C':
			per = False
			break
if per:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
x = []
for i in range(n):
	a = list(map(str, input().split()))
	x.append(a)
	flag = 0
for i in range(n):
	for j in range(m):
		if x[i][j] == 'C' or x[i][j] == 'M' or x[i][j] == 'Y':
			print('#Color')
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


(a, b) = map(int, input().split())
z = []
y = []
for i in range(0, a):
	y = list(map(str, input().split()))
	z.extend(y)
if z.count('W') + z.count('G') + z.count('B') == a * b:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(i) for i in input().split()]
cmy = ['C', 'M', 'Y']
result = True
colors = []
for i in range(n):
	inp = input().split()
	for e in inp:
		colors.append(e)
for e in colors:
	if e in cmy:
		result = False
		break
	else:
		continue
print('#Black&White' if result else '#Color')


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


(n, m) = map(int, input().split())
q = 3
for i in range(n):
	s = list(input().split())
	if 'C' in s or 'M' in s or 'Y' in s:
		q = 5
if q == 3:
	print('#Black&White')
else:
	print('#Color')


(height, width) = map(int, input().split())
aList = []
Color = 'CMY'
for i in range(height):
	aList.append(input().split())
for j in aList:
	for k in j:
		if k in Color:
			print('#Color')
			exit()
		else:
			pass
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')


(n, m) = map(int, input().split())
color = False
for _ in range(n):
	s = input().split()
	if s.count('B') + s.count('G') + s.count('W') != len(s):
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, m) = map(int, input().split())
for i in range(n):
	for c in input().split():
		if c not in ['W', 'G', 'B']:
			print('#Color')
			sys.exit()
print('#Black&White')


(n, m) = map(int, input().split())
flag = False
for i in range(n):
	row = input().split()
	for item in row:
		if item != 'W' and item != 'B' and (item != 'G'):
			flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
flag = False
for _ in range(n):
	L = input()
	for i in range(len(L)):
		if L[i] == 'C' or L[i] == 'M' or L[i] == 'Y':
			flag = True
if flag == True:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
couleur = 0
for x in range(n):
	pixels = [x for x in input().split()]
	if pixels.count('C') > 0 or pixels.count('M') > 0 or pixels.count('Y') > 0:
		couleur = 1
if couleur == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split(' '))
for i in range(n):
	arr = [str(i) for i in input().split(' ')]
	for j in arr:
		if j not in ['W', 'B', 'G']:
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
nums = []
countB = 0
countW = 0
countG = 0
f = n * m
while n:
	s = input().split()
	countB += s.count('B')
	countW += s.count('W')
	countG += s.count('G')
	nums.append(s)
	n -= 1
if countB + countW + countG == f:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
b = 0
for _ in range(n):
	a = [str(x) for x in input().split()]
	if 'C' in a or 'M' in a or 'Y' in a:
		b = 1
if b == 1:
	print('#Color')
else:
	print('#Black&White')


(row, num) = map(int, input().split())
arr = []
flage = 0
for x in range(row):
	x = str(input().split())
	arr.append(x)
for i in range(row):
	if 'C' in arr[i] or 'M' in arr[i] or 'Y' in arr[i]:
		flage = 1
if flage == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
ar = []
for i in range(n):
	temp = [str(i) for i in input().split()]
	ar.extend(temp)
if ar.count('C') != 0 or ar.count('M') != 0 or ar.count('Y') != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
k = 0
for _ in range(n):
	a = [i for i in input().split()]
	k += a.count('W') + a.count('B') + a.count('G')
if k == n * m:
	print('#Black&White')
else:
	print('#Color')


n = input()
n = n.split()
nn = list()
m = 0
for i in n:
	nn.append(int(i))
for i in range(nn[0]):
	k = input()
	k = k.split()
	for j in k:
		if j == 'W' or j == 'B' or j == 'G':
			pass
		else:
			m = 1
if m == 1:
	print('#Color')
else:
	print('#Black&White')


(r, c) = input().split(' ')
s = []
for i in range(int(r)):
	s.extend(input().split(' '))
if s.count('C') > 0 or s.count('M') > 0 or s.count('Y') > 0:
	print('#Color')
else:
	print('#Black&White')


(r, c) = map(int, input().split())
for _ in range(r):
	l = input().split()
	for t in l:
		if t != 'W' and t != 'B' and (t != 'G'):
			print('#Color')
			quit()
print('#Black&White')


t = input().split()
x = int(t[0])
y = int(t[1])
s = ''
q = ['W', 'G', 'B']
for i in range(x):
	a = input().split()
	for j in range(len(a)):
		s = s + a[j]
x = ''.join(set(s))
c = 0
for i in range(len(x)):
	if x[i] in q:
		c += 1
if c == len(x):
	print('#Black&White')
else:
	print('#Color')


(t, c) = map(int, input().split())
c = 0
for i in range(t):
	co = list(map(str, input().split()))
	if 'C' in co or 'M' in co or 'Y' in co:
		c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(x, y) = input().split()
x = int(x)
a = 0
for i in range(x):
	z = input().split()
	for i in z:
		if i == 'C' or i == 'M' or i == 'Y':
			a = 1
if a == 1:
	print('#Color')
else:
	print('#Black&White')


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


def main():
	(n, m) = map(int, input().split())
	for _ in range(n):
		for c in input()[::2]:
			if c in ('C', 'M', 'Y'):
				print('#Color')
				return
	print('#Black&White')
main()


def result():
	(n, m) = map(int, input().split())
	lst = []
	for i in range(n):
		lst.extend(input().split())
	for i in lst:
		if i == 'C':
			return '#Color'
		elif i == 'M':
			return '#Color'
		elif i == 'Y':
			return '#Color'
	return '#Black&White'
print(result())


(i, j) = input().split()
for y in range(int(i)):
	a = input()
	for k in a:
		if k == 'C' or k == 'M' or k == 'Y':
			print('#Color')
			exit(0)
print('#Black&White')


nm = input().split()
ans = 1
for q in range(int(nm[0])):
	for x in input().split():
		if x in ['C', 'M', 'Y']:
			print('#Color')
			ans = 0
			break
	if ans == 0:
		break
if ans == 1:
	print('#Black&White')


from sys import stdin, stdout
import sys
import math

def get_int():
	return int(stdin.readline().strip())

def get_ints():
	return map(int, stdin.readline().strip().split())

def get_array():
	return list(map(int, stdin.readline().strip().split()))

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

def op(c):
	return stdout.write(c)
(n, m) = get_ints()
ar = []
c = ['C', 'M', 'Y']
f = 0
for i in range(n):
	ar.append(list(map(str, stdin.readline().strip().split())))
for i in range(n):
	for j in range(m):
		if ar[i][j] in c:
			f = 1
			print('#Color')
			break
	if f == 1:
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	l = list(input().split())
	if 'C' in l or 'M' in l or 'Y' in l:
		print('#Color')
		break
else:
	print('#Black&White')


def picture_707A():
	(n_row, n_column) = map(int, input().split())
	is_color = False
	for i in range(n_row):
		l = input().split()
		if not is_color:
			for c in l:
				if c not in ['B', 'W', 'G']:
					is_color = True
					break
	if is_color:
		return '#Color'
	return '#Black&White'
print(picture_707A())


(n, m) = map(int, input().split())
color = False
for _ in '_' * n:
	row = input()
	if 'C' in row or 'M' in row or 'Y' in row:
		color = True
print('#Color' if color else '#Black&White')


dim = list(map(int, input().split(' ')))
m = [[x for x in input().split(' ')] for i in range(dim[0])]
test = True
c = ['C', 'M', 'Y', 'W', 'G', 'B']
for i in range(len(m)):
	if 'C' in m[i] or 'Y' in m[i] or 'M' in m[i]:
		test = False
		break
if not test:
	print('#Color')
else:
	print('#Black&White')


(r, c) = [int(x) for x in input().split()]
colors = ''
for i in range(r):
	colors += input()
	colors += ' '
if set(colors) == {'B', ' ', 'W'} or set(colors) == {'B', ' '} or set(colors) == {'W', ' '} or (set(colors) == {'G', ' '}) or (set(colors) == {'B', 'G', ' ', 'W'}):
	print('#Black&White')
else:
	print('#Color')


c_m_y = ['C', 'M', 'Y']
li = []
for i in range(int(input()[0])):
	for x in input().split():
		li.insert(0, x)
for i in c_m_y:
	if i in li:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
colors = []
for i in range(n):
	color = input()
	for j in range(0, 2 * m, 2):
		colors.append(color[j])
print('#Color' if 'C' in colors or 'M' in colors or 'Y' in colors else '#Black&White')


(n, m) = map(int, input().split())
is_colored = False
for i in range(n):
	row = list(map(str, input().split()))
	for j in range(m):
		if row[j] in ['C', 'M', 'Y']:
			is_colored = True
			break
print('#Color' if is_colored else '#Black&White')


dimensions = [int(x) for x in input().split(' ')]
pixels = []

def get_photo_type(dimensions):
	for i in range(dimensions[0]):
		data = input().split(' ')
		if 'C' in set(data) or 'M' in set(data) or 'Y' in set(data):
			print('#Color')
			return
	print('#Black&White')
	return
get_photo_type(dimensions)


thing = input()
rangeo = []
rangeo = thing.split(' ')
boi = []
isColorized = False
for _ in range(int(rangeo[0])):
	boi.append(input())
for _ in boi:
	isColorized = 'C' in _ or 'M' in _ or 'Y' in _
	if isColorized:
		break
print('#Color' if isColorized else '#Black&White')


(n, m) = map(int, input().split())
arr = []
for i in range(n):
	k = [x for x in input().split()]
	arr.append(k)
lol = False
for i in range(n):
	if 'C' in arr[i] or 'M' in arr[i] or 'Y' in arr[i]:
		lol = True
if lol:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
t = 0
while t < n:
	color = input().split()
	if 'C' in color or 'M' in color or 'Y' in color:
		print('#Color')
		break
	t = t + 1
if t == n:
	print('#Black&White')


l = list(input().split())
r = int(l[0])
c = 0
k = 0
for i in range(r):
	li = list(input().split())
	for j in li:
		if j != 'G' and j != 'B' and (j != 'W'):
			print('#Color')
			c = 1
			k = 1
			break
	if k == 1:
		break
if c == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
acc = set(['W', 'G', 'B'])
ans = True
for _ in range(n):
	ans &= all((_ in acc for _ in input().split()))
print('#Black&White' if ans else '#Color')


(r, c) = map(int, input().split())
for i in range(r):
	m = input().split()
	if 'C' in m or 'M' in m or 'Y' in m:
		print('#Color')
		quit()
print('#Black&White')


x = list(map(int, input().split()))
l = []
f = 0
for i in range(x[0]):
	l.append(list(map(str, input().split())))
for i in l:
	for j in i:
		if j in ['C', 'M', 'Y']:
			f = 1
			break
if f == 1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
d = False
for i in range(a):
	c = list(input().split())
	for j in range(b):
		if c[j] in ('C', 'M', 'Y'):
			d = True
if d:
	print('#Color')
else:
	print('#Black&White')


lt = list(input().split())
n = int(lt[0])
D = {}
while n != 0:
	n -= 1
	for i in list(input().split()):
		if i not in D:
			D[i] = 1
if 'C' in D or 'M' in D or 'Y' in D:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = [input().split() for x in range(n)]
foo = True
for i in color:
	if 'C' in i:
		foo = False
	elif 'M' in i:
		foo = False
	elif 'Y' in i:
		foo = False
if foo:
	print('#Black&White\n')
else:
	print('#Color\n')


(n, m) = [int(x) for x in input().split()]
s = ''
for i in range(n):
	s += input() + ' '
C = s.count('C')
M = s.count('M')
Y = s.count('Y')
if C > 0 or M > 0 or Y > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
L = []
for i in range(n):
	t = [str(x) for x in input().split()]
	for i in range(m):
		L.append(t[i])
if 'C' in L or 'M' in L or 'Y' in L:
	print('#Color')
else:
	print('#Black&White')


(n, m) = input().split()
a = []
for i in range(int(n)):
	a.append(list(map(str, input().split())))
t = 0
for i in range(int(n)):
	for j in range(int(m)):
		if a[i][j] == 'W' or a[i][j] == 'B' or a[i][j] == 'G':
			continue
		else:
			t = 1
			break
if t == 0:
	print('#Black&White')
else:
	print('#Color')


l = [int(i) for i in input().split()]
c = ['C', 'Y', 'M']
n = l[0]
m = l[1]
k = 0
a = []
for i in range(n):
	l1 = [i for i in input().split()]
	a.extend(l1)
for i in c:
	if i in a:
		k = 1
		print('#Color')
		break
if k == 0:
	print('#Black&White')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 9
(h, w) = list(map(int, input().split()))
f = False
for _ in range(h):
	a = input().split()
	if 'C' in a or 'M' in a or 'Y' in a:
		f = True
if f:
	print('#Color')
else:
	print('#Black&White')


import re
Photo = []
(n, m) = input().split()
n = int(n)
m = int(m)
for i in range(n):
	Photo.append(input().split())
BlackAndWhite = True
for String in Photo:
	for pixel in String:
		if re.match('[CMY]', pixel):
			BlackAndWhite = False
	if not BlackAndWhite:
		break
if BlackAndWhite:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(j) for j in input().split()]
javab = False
Photo = []
for i in range(n):
	Photo.append(input().split())
for i in range(n):
	for j in range(m):
		if str(Photo[i][j]) == 'C' or Photo[i][j] == 'M' or Photo[i][j] == 'Y':
			javab = True
			break
	else:
		continue
	break
if javab == True:
	print('#Color')
else:
	print('#Black&White')


k = input().split()
f = True
wbc = ('W', 'B', 'G')
for i in range(int(k[0])):
	for i in input().replace(' ', ''):
		if i not in wbc:
			f = False
			break
	if not f:
		break
print('#Black&White') if f else print('#Color')


(n, m) = tuple(map(int, input().split(' ')))
b = False
for i in range(n):
	s = ' '.join(map(str, input().split(' ')))
	if s.__contains__('C') or s.__contains__('M') or s.__contains__('Y'):
		b = True
		break
print('#Color' if b else '#Black&White')


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


(n, m) = map(int, input().split())
matriz = [[l for l in input().split()] for i in range(n)]
resp = 0
for i in range(n):
	for j in range(m):
		bla = matriz[i][j]
		if bla == 'C' or bla == 'Y' or bla == 'M':
			print('#Color')
			resp = 1
			break
	if resp:
		break
if not resp:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	for element in input().split():
		l.append(element)
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


l = list(map(int, input().strip().split()))
ls = []
n = l[0]
m = l[1]
for i in range(0, n):
	sm = list(map(str, input().strip().split()))
	ls.extend(sm)
c = ls.count('C')
m = ls.count('M')
y = ls.count('Y')
if c >= 1 or m >= 1 or y >= 1:
	print('#Color')
else:
	print('#Black&White')


import sys, re
a = sys.stdin.readlines()
pattern = '[YCM]'
color = False
for line in a:
	if re.search(pattern, line):
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
list_of_color = []
tag = 'nocolor'
for pixel in range(n):
	colors = input().split()
	for color in colors:
		list_of_color.append(color)
for color in list_of_color:
	if color == 'C' or color == 'M' or color == 'Y':
		print('#Color')
		tag = 'color'
		break
if tag == 'nocolor':
	print('#Black&White')


x = []
c = []
x = input().split()
for i in range(int(x[0])):
	y = []
	y = input().split()
	c = c + y
if 'C' in c or 'M' in c or 'Y' in c:
	print('#Color')
else:
	print('#Black&White')


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


a = map(int, input().split())
(t, u) = a
o = 0
b = []
while o in range(t):
	d = [i for i in input().split()]
	b.extend(d)
	o += 1
	d = []
r = ['C', 'M', 'Y']
h = list(set(b) & set(r))
if len(h) == 0:
	print('#Black&White')
else:
	print('#Color')


nm = input().strip().split(' ')
n = int(nm[0])
cols = {'B': 0, 'W': 0, 'G': 0}
flag = 0
for i in range(n):
	c = input().strip().split(' ')
	for p in c:
		if p in cols:
			pass
		else:
			print('#Color')
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


(n, _) = map(int, input().split())
colored = False
for i in range(n):
	for j in input():
		if j in 'CMY':
			colored = True
			break
if colored:
	print('#Color')
else:
	print('#Black&White')


a = input()
b = int(a[0])
c = 0
z = 0
for i in range(b):
	x = input()
	for i in x:
		if i in 'CMYWGB':
			c = c + 1
		if i in 'WBG':
			z = z + 1
if z >= c:
	print('#Black&White')
else:
	print('#Color')


(n, k) = map(int, input().split())
j = 0
for i in range(n):
	s = input().split()
	if 'C' in s or 'Y' in s or 'M' in s:
		print('#Color')
		j = 1
		break
if j == 0:
	print('#Black&White')


x = [int(i) for i in input().split()]
color = False
for i in range(x[0]):
	if color == True:
		break
	y = input()
	if y.find('C') != -1 or y.find('M') != -1 or y.find('Y') != -1:
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
c = set()
for i in range(a):
	d = list(input().split())
	for i in d:
		c.add(i)
for i in c:
	if i != 'W' and i != 'B' and (i != 'G'):
		print('#Color')
		exit()
print('#Black&White')


x = input().split()
n = int(x[0])
flag = 0
for i in range(n):
	y = input()
	if 'C' in y or 'M' in y or 'Y' in y:
		flag = 1
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = input().split()
n = int(n)
m = int(m)
i = 0
j = 0
x = []
while i < n:
	r = list(input())
	x += r
	i += 1
y = []
for s in x:
	if s != ' ':
		y.append(s)
x = y
if x.count('W') + x.count('B') + x.count('G') == len(x):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
f = True
for q in range(n):
	l = list(map(str, input().split()))
	if f:
		for i in l:
			if i not in 'BWG':
				f = False
				break
if f:
	print('#Black&White')
else:
	print('#Color')


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


(n, m) = map(int, input().split())
found = set()
for _ in range(n):
	found = found.union(set(input().split()))
print(('#Black&White', '#Color')[len(found.difference(set('BGW'))) > 0])


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


color = ['C', 'M', 'Y']
(n, m) = [int(i) for i in input().split()]
for i in range(n):
	l = input()
	for c in color:
		if c in l:
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	a.append(input().split())
s = '#Black&White'
for i in range(n):
	for j in range(m):
		if ord(a[i][j]) == ord('C') or ord(a[i][j]) == ord('M') or ord(a[i][j]) == ord('Y'):
			s = '#Color'
print(s)


(a, b) = map(int, input().split())
arr = []
check = 'CMY'
for i in range(a):
	k = list(input().split())
	arr += k
s = '#Black&White'
for i in arr:
	if i in check:
		s = '#Color'
		break
print(s)


tup = {'C', 'M', 'Y'}
(n, m) = map(int, input().split())
for i in range(n):
	a = set(input().split())
	if len(a & tup) != 0:
		print('#Color')
		exit()
print('#Black&White')


(n, m) = 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')


[n, m] = [int(x) for x in input().split(' ')]
color = False
for i in range(n):
	f = input()
	if sum((1 for p in f if p in ['C', 'M', 'Y'])) > 0:
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


(ty, tr) = list(map(int, input().split()))
bw = ['B', 'W', 'G']
c = ['C', 'Y', 'M']
f = []
flag = False
for i in range(ty):
	d = list(map(str, input().split()))
	f.append(d)
for j in range(len(f)):
	for k in range(len(f[0])):
		if f[j][k] in c:
			flag = True
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
photo = [[0 for i in range(m)] for j in range(n)]
for i in range(n):
	photo[i] = [str(x) for x in input().split()]
print(['#Color', '#Black&White'][all((photo[i][j] == 'B' or photo[i][j] == 'W' or photo[i][j] == 'G' for i in range(n) for j in range(m)))])


import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
(N, M) = map(int, input().split())
A = []
for i in range(N):
	A.append(input())
for row in A:
	if 'C' in row or 'M' in row or 'Y' in row:
		print('#Color')
		exit(0)
print('#Black&White')


[y, x] = [int(x) for x in input().split()]
for i in range(0, y):
	cmy = [x for x in input().split() if x in ['C', 'M', 'Y']]
	if len(cmy) != 0:
		print('#Color')
		exit()
print('#Black&White')


a = input().split()
x = int(a[0])
y = int(a[1])
i = 1
lst = []
while i <= x:
	v = 0
	v = input().split()
	for k in v:
		lst.append(k)
	i = i + 1
p = lst.count('C')
q = lst.count('M')
r = lst.count('Y')
if p == q == r == 0:
	print('#Black&White')
else:
	print('#Color')


a = list(map(int, input().split()))
l = []
for i in range(a[0]):
	l.append(input().split())
count = 0
for j in l:
	for k in j:
		if k == 'C' or k == 'M' or k == 'Y':
			count += 1
if count > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
flag_color = 0
for i in range(n):
	row = list(input().split())
	for j in range(m):
		if row[j] == 'B' or row[j] == 'W' or row[j] == 'G':
			continue
		else:
			flag_color = 1
			break
if flag_color > 0:
	print('#Color')
else:
	print('#Black&White')


import sys
import os

def changeStdioToFile():
	path = os.path.dirname(os.path.abspath(__file__))
	sys.stdin = open(f'{path}/input.txt', 'r')
	sys.stdout = open(f'{path}/output.txt', 'w')
t = 1
for _ in range(t):
	(n, m) = [int(x) for x in input().split()]
	inp = ''
	for _ in range(n):
		inp += ' ' + input()
	s = set(inp.split(' '))
	if 'M' in s or 'Y' in s or 'C' in s:
		print('#Color\n')
	else:
		print('#Black&White\n')


from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def main():
	(n, m) = 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()


x = [int(y) for y in input().split()]
for i in range(x[0]):
	y = [str(x) for x in input().split()]
	if 'C' in y or 'M' in y or 'Y' in y:
		f = 1
		break
	else:
		f = 0
print('#Color' if f == 1 else '#Black&White')


import sys
(n, m) = map(int, input().split())
colors = []
for i in range(n):
	colors.append(input().split())
for row in colors:
	for i in row:
		if i != 'W' and i != 'B' and (i != 'G'):
			print('#Color')
			sys.exit(0)
print('#Black&White')


def ii():
	return int(input())

def ss():
	return [x for x in input()]

def si():
	return [int(x) for x in input().split()]

def mi():
	return map(int, input().split())
(a, b) = mi()
ans = ['#Black&White', '#Color']
key = True
for i in range(a):
	s = input().split()
	if key and ('C' in s or 'M' in s or 'Y' in s):
		key = False
print(ans[int(not key)])


(a, b) = map(int, input().split())
t = []
q = []
q1 = []
e = 0
p = []
for i in range(a):
	t = list(map(str, input().split()))
	q.append(t)
for i in range(a):
	for j in range(b):
		if q[i][j] == 'C' or q[i][j] == 'M' or q[i][j] == 'Y':
			e = 1
if e == 1:
	print('#Color')
else:
	print('#Black&White')


(line, row) = [int(x) for x in input().split()]
check = 0
color = [[] for i in range(line)]
for i in range(line):
	color[i].append(input().split())
for i in range(line):
	for j in range(row):
		if color[i][0][j] == 'C' or color[i][0][j] == 'M' or color[i][0][j] == 'Y':
			check += 1
if check == 0:
	print('#Black&White')
else:
	print('#Color')


import sys
import math
import bisect
import itertools
import random
import re

def solve(A):
	n = len(A)
	for i in range(n):
		for c in 'CMY':
			if c in A[i]:
				return True
	return False

def main():
	(n, m) = map(int, input().split())
	A = []
	for i in range(n):
		A.append(input().split())
	if solve(A):
		print('#Color')
	else:
		print('#Black&White')
main()


color = 0
(n, m) = [int(i) for i in input().split()]
for i in range(n):
	row = [str(i) for i in input().split()]
	for j in range(m):
		if row[j] == 'C':
			color = 1
		elif row[j] == 'M':
			color = 1
		elif row[j] == 'Y':
			color = 1
if color == 1:
	print('#Color')
if color == 0:
	print('#Black&White')


colours = ['C', 'M', 'Y']
shades = ['W', 'G', 'B']
matrix = []
(n, m) = map(int, input().split())
for i in range(n):
	a = list(input().split())
	for k in range(m):
		matrix.append(a[k])
count_colours = 0
count_shades = 0
for j in range(len(matrix)):
	if matrix[j] in colours:
		count_colours += 1
	elif matrix[j] in shades:
		count_shades += 1
if count_colours == 0:
	print('#Black&White')
else:
	print('#Color')


import sys
input = sys.stdin.readline
(n, m) = map(int, input().split())
ans = '#Black&White'
for i in range(n):
	l = list(map(str, input().split()))
	if 'C' in l or 'M' in l or 'Y' in l:
		ans = '#Color'
print(ans)


def get_hashtag():
	(n, m) = [int(x) for x in input().split()]
	colors = [input().replace(' ', '') for i in range(n)]
	for i in range(n):
		if colors[i].find('C') > -1 or colors[i].find('M') > -1 or colors[i].find('Y') > -1:
			return '#Color'
	return '#Black&White'
print(get_hashtag())


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


(a, b) = [int(x) for x in input().split()]
wyn = 0
for x in range(a):
	c = input()
	if 'C' in c or 'M' in c or 'Y' in c:
		wyn = 1
if wyn == 1:
	print('#Color')
else:
	print('#Black&White')


def find(li):
	for i in li:
		for j in i:
			if j == 'C' or j == 'Y' or j == 'M':
				return 1
	return 0
(n, m) = list(map(int, input().split()))
li = []
for i in range(0, n):
	x = list(map(str, input().split()))
	li.append(x)
if find(li):
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
f = 0
for i in range(n):
	l = list(input().split())
	for i in range(m):
		if l[i] == 'W' or l[i] == 'G' or l[i] == 'B':
			f = 1
		else:
			f = 0
			break
	if f == 0:
		break
if f == 1:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
dict = {}
isColor = False
for x in range(n):
	w = str(input())
	for y in w:
		if y in 'CMY':
			isColor = True
			break
	if isColor:
		break
if isColor:
	print('#Color')
else:
	print('#Black&White')


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


x = list(map(int, input().split()))
flag = 1
for i in range(x[0]):
	y = input().split()
	for j in y:
		if j in ['C', 'M', 'Y']:
			flag = 0
if flag:
	print('#Black&White')
else:
	print('#Color')


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


(n, m) = list(map(int, input().split()))
a = ''
for _ in range(n):
	temp = input().split(' ')
	temp = ''.join(temp)
	a += temp
if a.count('B') + a.count('W') + a.count('G') == len(a):
	print('#Black&White')
else:
	print('#Color')


b = input()
i = 0
k = ''
while b[i] != ' ':
	k = k + b[i]
	i += 1
n = int(k)
i = 1
t = '#Black&White'
while i <= n:
	b = input()
	if 'C' in b or 'M' in b or 'Y' in b:
		t = '#Color'
	i += 1
print(t)


def findColor(line, m, COLOR):
	for i in range(m):
		if line[i] in COLOR:
			return True
	return False
(n, m) = tuple(map(int, input().split()))
COLOR = ('C', 'M', 'Y')
matrix = []
isColor = False
for i in range(n):
	isColor = isColor or findColor(list(input().split()), m, COLOR)
if isColor:
	print('#Color')
else:
	print('#Black&White')


matrix = list(map(int, input().split(' ')))
k = []
for i in range(matrix[0]):
	k += input().split(' ')
if 'C' in k or 'M' in k or 'Y' in k:
	print('#Color')
else:
	print('#Black&White')


s = [int(S) for S in input().split()]
n = s[0]
m = s[1]
p = 0
for i in range(n):
	A = [S for S in input().split()]
	for j in range(m):
		if A[j] == 'C' or A[j] == 'M' or A[j] == 'Y':
			p = 1
if p == 1:
	print('#Color')
else:
	print('#Black&White')


def solve():
	(n, m) = map(int, input().split())
	check = True
	for x in range(n):
		a = input().split()
		for x in a:
			if x != 'W' and x != 'B' and (x != 'G'):
				check = False
	if check:
		print('#Black&White')
	else:
		print('#Color')
solve()


import sys
print(['#Black&White', '#Color'][any((i in 'CMY' for i in str(sys.stdin.readlines())))])


n = int(input().split()[0])
for i in range(n):
	colorsOfThisLine = input().split()
	for color in colorsOfThisLine:
		if color == 'C' or color == 'M' or color == 'Y':
			print('#Color')
			exit(0)
print('#Black&White')


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


t = input().split()
tt = int(t[0])
k = []
for i in range(tt):
	k.append(input().split())
k = [x for y in k for x in y]
a = k.count('W')
b = k.count('G')
c = k.count('B')
if a + b + c != tt * int(t[1]):
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
img = []
for i in range(n):
	img.append([j for j in input().split()])

def msg():
	for y in range(n):
		for x in range(m):
			if img[y][x] == 'C' or img[y][x] == 'M' or img[y][x] == 'Y':
				return '#Color'
	return '#Black&White'
print(msg())


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


(n, m) = list(map(int, input().split()))
l = []
for i in range(n):
	l = l + list(input().split())
s = ''.join((i1 for i1 in l))
if 'C' in s or 'Y' in s or 'M' in s:
	print('#Color')
else:
	print('#Black&White')


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


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')


(n, m) = [int(x) for x in input().split()]
black_and_white = True
for i in range(n):
	for c in input().split():
		if c in 'CMY':
			black_and_white = False
			break
if black_and_white:
	print('#Black&White')
else:
	print('#Color')


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


(n, m) = map(int, input().split())
a = []
for i in range(n):
	c = list(map(str, input().split()))
	a.append(c)
bw = ['B', 'W', 'G']
s = 0
for x in range(n):
	for y in range(m):
		if a[x][y] not in bw:
			s += 1
			break
	if s == 1:
		break
if s == 1:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
c = 0
for i in range(m):
	L = list(map(str, input().split()))
	if 'C' in L or 'M' in L or 'Y' in L:
		c = 1
if c == 1:
	print('#Color')
if c == 0:
	print('#Black&White')


(a, b) = map(int, input().split())
d = []
for _ in range(a):
	p = [str(i) for i in input().split()]
	d.append(p)
p = []
for i in d:
	for j in i:
		p.append(j)
if 'C' in p or 'M' in p or 'Y' in p:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
duh = 0
for i in range(n):
	l.append(list(map(str, input().split())))
for i in l:
	for j in i:
		if j in ['C', 'M', 'Y']:
			duh = 1
			break
print('#Color') if duh == 1 else print('#Black&White')


(a, _) = map(int, input().split())
f = False
for _ in range(a):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		print('#Color')
		f = True
		break
if not f:
	print('#Black&White')


(nRow, nCol) = [int(x) for x in input().split()]
picture = [input().split() for _ in range(nRow)]
colour = False
for row in picture:
	for pxl in row:
		if pxl in ['M', 'C', 'Y']:
			colour = True
			break
	if colour:
		break
if colour:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
k = 0
for _ in range(n):
	a = set(input().split())
	k = (k, 1)[any((i in a for i in ('C', 'M', 'Y')))]
print(('#Color', '#Black&White')[k != 1])


(n, m) = map(int, input().split())
k = 0
j = 0
for i in range(n):
	y = list(map(str, input().split()))
	if 'C' not in y and 'M' not in y and ('Y' not in y):
		k += 1
	else:
		continue
if k == n:
	print('#Black&White')
else:
	print('#Color')


(n, c) = map(int, input().split())
c = ['C', 'M', 'Y']
t = False
for i in range(n):
	x = input()
	for i in c:
		if i in x:
			t = True
			break
print('#Color' if t else '#Black&White')


n = list(map(int, input().split()))
a = n[0]
b = n[1]
c = 1
for i in range(a):
	l = list(map(str, input().split()[:b]))
	if 'C' in l or 'M' in l or 'Y' in l:
		c = 0
	else:
		continue
if c == 1:
	print('#Black&White')
else:
	print('#Color')


(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')


n = [int(i) for i in input().split()]
c = 0
flag = 0
for i in range(n[0]):
	x = input().split()
	for j in x:
		if j == 'C' or j == 'Y' or j == 'M':
			flag = 1
			break
		else:
			c = c + 1
	if flag == 1:
		print('#Color')
		break
if c == n[0] * n[1]:
	print('#Black&White')


import sys
(r, c) = [int(i) for i in input().split()]
for i in range(r):
	list = input().split()
	for char in list:
		if not (char == 'B' or char == 'G' or char == 'W'):
			print('#Color')
			sys.exit()
print('#Black&White')


def isBlackWhite(matrix):
	for i in range(len(matrix)):
		for j in range(len(matrix[0])):
			if matrix[i][j] == 'C' or matrix[i][j] == 'M' or matrix[i][j] == 'Y':
				return False
	return True
(n, m) = map(int, input().split())
matrix = []
for _ in range(n):
	matrix.append(input().split())
print('#Black&White' if isBlackWhite(matrix) else '#Color')


n = input().split()
s = []
for i in range(int(n[0])):
	ss = input().split()
	s = s + ss
if 'C' in s or 'M' in s or 'Y' in s:
	print('#Color')
else:
	print('#Black&White')


from os import system

def main():
	f = False
	(n, m) = map(int, input().split())
	for i in range(n):
		c = input()
		for j in c:
			if j in {'C', 'M', 'Y'}:
				f = True
	if f:
		print('#Color')
	else:
		print('#Black&White')
main()


def iscolor(n):
	for _ in range(n):
		a = input().split()
		for x in a:
			if x in ['C', 'M', 'Y']:
				return True
	return False
(n, m) = map(int, input().split())
if iscolor(n):
	print('#Color')
else:
	print('#Black&White')


(n1, m1) = input().split()
n = int(n1)
m = int(m1)
p = 0
while n > p:
	c = input()
	if c.find('C') >= 0 or c.find('Y') >= 0 or c.find('M') >= 0:
		print('#Color')
		exit()
	p = p + 1
print('#Black&White')


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


def determinePic(colors):
	colorsList = ['C', 'M', 'Y']
	for i in colors:
		for j in i:
			if j in colorsList:
				return '#Color'
	return '#Black&White'
nums = input().split()
colors = []
for i in range(int(nums[0])):
	items = input().split()
	colors.append(list(items))
print(determinePic(colors))


(x, y) = [int(i) for i in input().split()]
iscolor = False
for i in range(x):
	colors = [i for i in input().split()]
	for j in colors:
		if j == 'C' or j == 'M' or j == 'Y':
			iscolor = True
			break
if iscolor:
	print('#Color')
else:
	print('#Black&White')


(n, m) = (int(x) for x in input().split())
for i in range(n):
	row = {c for c in input().split()}
	if row & {'C', 'M', 'Y'}:
		print('#Color')
		exit(0)
print('#Black&White')


def inp():
	return map(int, input().split())

def arr_inp():
	return [x for x in input().split()]
(n, m) = inp()
for i in range(n):
	arr = arr_inp()
	if 'C' in arr or 'M' in arr or 'Y' in arr:
		print('#Color')
		exit()
print('#Black&White')


firstString = input()
firstStringList = list(firstString.split(' '))
n = int(firstStringList[0])
m = int(firstStringList[1])
colored = 0
rowPixelsList = list()
for i in range(n):
	rowPixelsString = input()
	rowPixelsList = list(rowPixelsString.split(' '))
	for j in range(len(rowPixelsList)):
		pixel = rowPixelsList[j]
		if pixel == 'C' or pixel == 'M' or pixel == 'Y':
			colored = 1
if colored == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split(' '))
is_color = False
for i in range(n):
	pixels = input().split(' ')
	for pixel in pixels:
		if pixel in ['C', 'M', 'Y']:
			is_color = True
			break
	if is_color == True:
		break
if is_color == True:
	color = '#Color'
else:
	color = '#Black&White'
print(color)


(x, y) = input().split()
x = int(x)
y = int(y)
flag = 0
for i in range(x):
	ar = input().split()
	for j in range(y):
		if not (ar[j] == 'B' or ar[j] == 'W' or ar[j] == 'G'):
			flag = 1
			break
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


def solve(test):
	(n, m) = map(int, input().split())
	ok = False
	for i in range(n):
		s = input().split()
		for c in s:
			if c in ['C', 'M', 'Y']:
				ok = True
	print('#Color' if ok else '#Black&White')
t = 1
for _ in range(t):
	solve(_ + 1)


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


count = 0
(x, y) = (int(v) for v in input().split())
for i in range(x):
	z = [u for u in input().split()]
	if 'C' in z or 'M' in z or 'Y' in z:
		print('#Color')
		break
	else:
		count += 1
if count == x:
	print('#Black&White')


import math
(a, b) = list(map(int, input().split(' ')))
sum = '#Black&White'
for k in range(a):
	d = list(map(str, input().split(' ')))
	if 'C' in d or 'M' in d or 'Y' in d:
		sum = '#Color'
print(sum)


def check_col():
	return 0
dims = input().split(' ')
nrows = int(dims[0])
mcols = int(dims[1])
rows = []
res = 0
for i in range(nrows):
	row = input().split(' ')
	rows.append(row)
	for pixel in row:
		if pixel == 'C':
			res = 1
		elif pixel == 'M':
			res = 1
		elif pixel == 'Y':
			res = 1
if res == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
temp = 1
for i in ' ' * n:
	for j in input().split():
		if j in 'CMY':
			temp = 0
print(['#Color', '#Black&White'][temp])


(n, m) = map(int, input().split())
flag = 0
for i in range(n):
	arr = list(map(str, input().split()))
	if 'C' in arr or 'M' in arr or 'Y' in arr:
		flag = 1
	else:
		continue
if flag == 1:
	print('#Color')
elif flag == 0:
	print('#Black&White')


(c, r) = map(int, input().split())
ans = []
for i in range(c):
	tmp = list(map(str, input().split()))
	ans += tmp
ans = set(ans)
if 'C' not in ans and 'M' not in ans and ('Y' not in ans):
	print('#Black&White')
else:
	print('#Color')


(x, _) = [int(a) for a in input().split()]
color = False
for ___ in range(x):
	y = input().split()
	if 'C' in y or 'M' in y or 'Y' in y:
		color = True
print('#Color' if color else '#Black&White')


(x, y) = map(int, input().split())
d = []
for i in range(0, x):
	a = list(map(str, input().split()))
	d.append(a)
for i in range(0, x):
	for j in range(0, y):
		if d[i][j] == 'M' or d[i][j] == 'C' or d[i][j] == 'Y':
			print('#Color')
			break
		elif i == x - 1 and j == y - 1:
			print('#Black&White')
	if d[i][j] == 'M' or d[i][j] == 'C' or d[i][j] == 'Y':
		break


(r, c) = map(int, input().split())
final = set()
for i in range(r):
	temp = set(map(str, input().split()))
	final = final.union(temp)
if 'C' in final or 'M' in final or 'Y' in final:
	print('#Color')
else:
	print('#Black&White')


(N, M) = map(int, input().split())
chars = set()
for n in range(N):
	chars |= set(input().split())
if 'C' in chars or 'M' in chars or 'Y' in chars:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
c1 = 0
c2 = 0
for _ in range(m):
	s = input()
	c1 = c1 + s.count('C') + s.count('M') + s.count('Y')
	c2 = c2 + s.count('G') + s.count('W') + s.count('B')
if c2 == m * n:
	print('#Black&White')
else:
	print('#Color')


import sys
l = list(map(int, sys.stdin.readline().split()))
n = l[0]
m = l[1]
black = 1
for i in range(n):
	row = sys.stdin.readline().split()
	for j in range(m):
		if row[j] in ['C', 'M', 'Y']:
			black = 0
			break
if black == 0:
	print('#Color')
else:
	print('#Black&White')


(x, y) = map(int, input().split())
(m, dict, count) = ([], {}, 0)
for i in range(x):
	A = list(map(str, input().split(' ')))
	for i in A:
		if i not in m:
			m.append(i)
for i in range(3):
	for i in m:
		if i == 'W':
			m.remove(i)
		if i == 'B':
			m.remove(i)
		if i == 'G':
			m.remove(i)
if len(m) == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
B = 0
W = 0
G = 0
for i in range(0, n):
	a = input().split()
	for j in a:
		if j == 'B':
			B += 1
		elif j == 'W':
			W += 1
		elif j == 'G':
			G += 1
if B + W + G == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(i) for i in input().split()]
l = [[[] for i in range(m)] for j in range(n)]
c = 0
for i in range(n):
	a = input().split()
	for j in range(m):
		l[i][j] = a[j]
		if l[i][j] == 'C' or l[i][j] == 'M' or l[i][j] == 'Y':
			c += 1
if c == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
colored_pixels = {'C', 'M', 'Y'}
if any((any((pixel in colored_pixels for pixel in input().split())) for i in range(n))):
	answer = '#Color'
else:
	answer = '#Black&White'
print(answer)


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(input().split())
t = 0
for e in l:
	if 'C' in e or 'Y' in e or 'M' in e:
		t = 1
		break
if t == 1:
	print('#Color')
else:
	print('#Black&White')


def readlist(n):
	a = []
	for i in range(n):
		line = input().split()
		for i in line:
			a.append(i)
		return a
lst = readlist(2)
s = [[0] * int(lst[1]) for i in range(int(lst[0]))]
temp = 0
while temp < int(lst[0]):
	s[temp] = readlist(int(lst[1]))
	temp += 1

def lalala():
	b = []
	for i in s:
		for j in i:
			b.append(j)
	for i in b:
		if i not in ['C', 'M', 'Y', 'B', 'W', 'G']:
			break
		if i in ['C', 'M', 'Y']:
			return 1
	else:
		return 2
if lalala() == 1:
	print('#Color')
if lalala() == 2:
	print('#Black&White')


(a, b) = map(int, input().split())
mat = []
cnt = 0
for i in range(a):
	inpu = list(input().split())
	if 'C' in inpu:
		cnt -= 99
	elif 'M' in inpu:
		cnt -= 99
	elif 'Y' in inpu:
		cnt -= 99
	else:
		mat.append(inpu)
		cnt += 1
if a == len(mat):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
k = 0
for i in range(n):
	a = list(input().split())
	for t in range(len(a)):
		if a[t] != 'G' and a[t] != 'B' and (a[t] != 'W'):
			k += 1
if k != 0:
	print('#Color')
else:
	print('#Black&White')


mat = [int(n) for n in input().split()]
flag = True
s = []
for i in range(mat[0]):
	l = [m for m in input().split()]
	for j in range(len(l)):
		s.append(l[j])
for i in range(len(s)):
	if s[i] == 'C' or s[i] == 'M' or s[i] == 'Y':
		flag = False
		break
if flag == False:
	print('#Color')
else:
	print('#Black&White')


def solve():
	(n, m) = [int(s) for s in input().split()]
	u = '#Black&White'
	for i in range(n):
		for j in input().split():
			if j in {'C', 'M', 'Y'}:
				u = '#Color'
	print(u)
solve()


(n, m) = [int(x) for x in input().split()]
f = 0
for i in range(0, n):
	l = [x for x in input().split()]
	for c in l:
		if c not in {'W', 'B', 'G'}:
			print('#Color')
			f = 1
			break
	if f == 1:
		break
if f == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
array = []
is_black_and_white = True
for i in range(n):
	array.append(input().split())
for i in array:
	for j in i:
		if j in 'CMY':
			is_black_and_white = False
			break
	if not is_black_and_white:
		break
if is_black_and_white:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
x = 0
for i in range(a):
	c = [str(c) for c in input().split()]
	for i in range(b):
		if c[i] == 'C' or c[i] == 'M' or c[i] == 'Y':
			x += 1
if x == 0:
	print('#Black&White')
else:
	print('#Color')


(x, y) = [int(a) for a in input().split()]
z = []
for i in range(x):
	a = [str(a) for a in input().split()]
	if 'C' in a or 'Y' in a or 'M' in a:
		print('#Color')
		quit()
print('#Black&White')


(n, m) = map(int, input().split())
l = [[i for i in input().split()] for j in range(n)]
count = 0
color = 'CMY'
for i in range(n):
	for j in range(m):
		if l[i][j] in color:
			print('#Color')
			exit()
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = ['C', 'M', 'Y']
bw = ['W', 'G', 'B']
fl = False
for i in range(n):
	s = input().split()
	for j in s:
		if j in color:
			fl = True
			continue
if fl:
	print('#Color')
else:
	print('#Black&White')


t = input
p = print
r = range
(n, m) = map(int, t().split())
ans = '#Black&White'
colors = 'CMY'
for i in r(n):
	s = t().split()
	for j in s:
		if j in colors:
			ans = '#Color'
			p(ans)
			exit()
p(ans)


def fun(a):
	global c
	global bw
	if a in 'CMY':
		c += 1
	else:
		bw += 1
c = 0
bw = 0
(n, m) = map(int, input().split())
for i in range(n):
	l = list(map(fun, input().split()))
if c == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = (int(x) for x in input().split())

def photo_type(n, m):
	for i in range(n):
		curr = input()
		if 'C' in curr or 'M' in curr or 'Y' in curr:
			return '#Color'
	return '#Black&White'
print(photo_type(n, m))


import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heapreplace_max
from math import ceil, floor, gcd, fabs, factorial, fmod, sqrt, inf, log
from collections import defaultdict as dd, deque, Counter as c
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from fractions import Fraction
mod = pow(10, 9) + 7
mod2 = 998244353

def data():
	return sys.stdin.readline().strip()

def out(*var, end='\n'):
	sys.stdout.write(' '.join(map(str, var)) + end)

def l():
	return list(sp())

def sl():
	return list(ssp())

def sp():
	return map(int, data().split())

def ssp():
	return map(str, data().split())

def l1d(n, val=0):
	return [val for i in range(n)]

def l2d(n, m, val=0):
	return [l1d(n, val) for j in range(m)]
(n, m) = sp()
color = ['C', 'M', 'Y']
result = False
for i in range(n):
	arr = sl()
	if not result:
		for j in arr:
			if j in color:
				result = True
				break
if result:
	out('#Color')
	exit()
out('#Black&White')


(n, m) = map(int, input().split())
s = ''
while n > 0:
	s += input()
	n -= 1
if 'C' in s or 'M' in s or 'Y' in s:
	print('#Color')
else:
	print('#Black&White')


y = input()
y1 = y.split(' ')
r = []
for i in range(int(y1[0])):
	x = input()
	x1 = x.split(' ')
	for j in x1:
		if j != 'B' and j != 'W' and (j != 'G'):
			r.append(1)
if len(r) == 0:
	print('#Black&White')
else:
	print('#Color')


(r, c) = list(map(int, input().split()))
c_bw = 0
cntr = r * c
for i in range(r):
	f = input().split()
	for l in range(c):
		if f[l] == 'G' or f[l] == 'W' or f[l] == 'B':
			c_bw += 1
if cntr == c_bw:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
M = [input() for i in range(n)]
c = 0
for i in range(n):
	for j in range(m + m - 1):
		if M[i][j] == 'B' or M[i][j] == 'W' or M[i][j] == ' ' or (M[i][j] == 'G'):
			d = 1
		else:
			print('#Color')
			c = 1
		if c == 1:
			break
	if c == 1:
		break
if c == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	c = input()
	a.append(c)
k = 0
for i in range(n):
	for j in range(m * 2 - 1):
		if a[i][j] != 'W' and a[i][j] != 'B' and (j % 2 == 0) and (a[i][j] != 'G'):
			k += 1
			break
if k != 0:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, m) = map(int, input().split())
pixels = []
for i in range(0, n):
	pixels.extend(input().split())
for i in range(0, m * n):
	if pixels[i] in 'CMY':
		print('#Color')
		sys.exit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
z = []
for i in range(n):
	a.append(list(map(str, input().split())))
for j in range(n):
	for q in range(m):
		z.append(a[j][q])
if 'C' in z or 'Y' in z or 'M' in z:
	print('#Color')
else:
	print('#Black&White')


(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, itertools, fractions, heapq, collections, bisect, sys, queue, copy
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def LS():
	return sys.stdin.readline().split()

def S():
	return input()

def main():
	(h, w) = LI()
	f = False
	for _ in range(h):
		s = LS()
		if 'C' in s or 'M' in s or 'Y' in s:
			f = True
	if f:
		return '#Color'
	return '#Black&White'
print(main())


(rows, colors) = map(int, input().split())
colors = set()
for _ in range(rows):
	colors.update(input().split())
if 'C' in colors or 'M' in colors or 'Y' in colors:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
p = []
flag = 0
for i in range(n):
	o = list(map(str, input().split()))
	p.append(o)
for i in range(n):
	for j in range(m):
		if p[i][j] == 'M' or p[i][j] == 'C' or p[i][j] == 'Y':
			flag = 1
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input('').split())
u = 0
isB = True
for i in range(n):
	listA = input('')
	g = listA.split(' ')
	for i in g:
		if i == 'B' or i == 'W' or i == 'G':
			u += 1
		else:
			isB = False
			break
if isB:
	print('#Black&White')
else:
	print('#Color')


(c, r) = map(int, input().split())
colors = {}
for i in range(c):
	ip = input().split()
	for k in ip:
		if k not in colors:
			colors[k] = 1
if any([i in colors for i in ['C', 'M', 'Y']]):
	print('#Color')
else:
	print('#Black&White')


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


from sys import exit
(n, m) = map(int, input().split())
for x in range(0, n):
	for y in input().split():
		if y in 'CMY':
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
x = ''
for i in range(n):
	a.append(list(map(str, input().upper().split())))
for i in range(n):
	for j in range(m):
		if a[i][j] in ['C', 'M', 'Y']:
			x = '#Color'
	if x == '#Color':
		print(x)
		break
else:
	print('#Black&White')


flag = 0
t = 'CMY'
(x, y) = map(int, input().split())
for i in range(x):
	w = ''.join(input().split(' '))
	if len(set(w) & set(t)) > 0:
		flag = 1
		break
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
kol = 0
for i in range(n):
	a.append(input().replace(' ', ''))
for i in range(n):
	for j in range(m):
		if a[i][j] is 'Y' or a[i][j] is 'M' or a[i][j] is 'C':
			kol += 1
if kol != 0:
	print('#Color')
else:
	print('#Black&White')


k = 0
(x, y) = map(int, input().split())
for i in range(x):
	a = list(input().split())
	if k != 1 and 'C' in a or 'M' in a or 'Y' in a:
		k = 1
print(['#Black&White', '#Color'][k])


(n, m) = [int(x) for x in input().split()]
l = ['C', 'M', 'Y']
p = 0
a = {}
for i in range(n):
	a[i] = [str(x) for x in input().split()]
for i in range(n):
	for j in range(m):
		if a[i][j] in l:
			print('#Color')
			p = 1
			break
	if p == 1:
		break
if p == 0:
	print('#Black&White')


import sys, string
sys.setrecursionlimit(2000000000)
flag = False
(n, m) = list(map(int, sys.stdin.readline().split()))
lst = [['' for i in range(2 * m + 2)] for j in range(n)]
for i in range(n):
	lst[i] = [x for x in input().split()]
	for j in range(m):
		if lst[i][j] in {'C', 'M', 'Y'}:
			flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, b) = map(int, input().split())
l = list()
for i in range(n):
	l += list(input().split())
l = list(set(l))
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
count = 0
h = ['C', 'M', 'Y']
s = []
for i in range(a):
	b = input().split()
	s.append(b)
for i in s:
	for k in i:
		if k in h:
			count += 1
if count > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	n = list(map(str, input().split()))
	if n.count('C') > 0 or n.count('M') > 0 or n.count('Y') > 0:
		print('#Color')
		exit()
print('#Black&White')


(n, m) = map(int, input().split())
l1 = []
while n:
	l = input().split()
	l1.append(l)
	n = n - 1
count = 0
for i in range(len(l1)):
	for j in range(len(l1[i])):
		if l1[i][j] == 'Y' or l1[i][j] == 'M' or l1[i][j] == 'C':
			count += 1
		else:
			count += 0
if count != 0:
	print('#Color')
else:
	print('#Black&White')


p = input()
p = p.split()
n = int(p[0])
m = int(p[1])
d = 0
for i in range(n):
	q = input()
	q = q.split()
	for j in range(m):
		if q[j] == 'C' or q[j] == 'M' or q[j] == 'Y':
			d = 1
if d == 1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
l = []
x = ['M', 'Y', 'C']
y = '#Black&White'
for i in range(a):
	l.append(input().split())
for i in range(a):
	for j in range(b):
		if l[i][j] in x:
			y = '#Color'
			break
print(y)


import sys
(n, m) = [int(i) for i in input().split(' ')]
k = 0
for i in range(n):
	a = input().split(' ')
	for j in range(m):
		if a[j] == 'C' or a[j] == 'M' or a[j] == 'Y':
			k = 1
print('#Color' if k == 1 else '#Black&White')


(n, m) = map(int, input().split())
out = set()
for i in range(n):
	out = out.union(set(input().split()))
if out.intersection({'C', 'M', 'Y'}) == set():
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split()]
colorp = 'CMY'
color = False
for _ in range(n):
	for c in input().split():
		if c in colorp:
			color = True
			break
if not color:
	print('#Black&White')
else:
	print('#Color')


import sys
import math
input = sys.stdin.readline

def int_array():
	return list(map(int, input().split()))

def str_array():
	return list(map(str, input().split()))
(n, k) = int_array()
pixels = []
for i in range(n):
	new_array = str_array()
	pixels += new_array
if 'C' in pixels or 'M' in pixels or 'Y' in pixels:
	print('#Color')
else:
	print('#Black&White')


(r, c) = map(int, input().split())
x = []
a = 0
for i in range(r):
	x += input().split()
for i in x:
	if i in ['C', 'M', 'Y']:
		a += 1
print('#Color') if a else print('#Black&White')


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


x = input().split()
h = int(x[0])
while h != 0:
	y = input().split()
	if 'C' in y or 'M' in y or 'Y' in y:
		print('#Color')
		break
	h = h - 1
else:
	print('#Black&White')


(x, y) = map(int, input().split())
flag = 0
for _ in range(x):
	li = list(map(str, input().split()))
	if 'C' in li or 'M' in li or 'Y' in li:
		flag = 1
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
list1 = []
for i in range(n):
	list2 = [str(x) for x in input().split()]
	list1.append(list2)
c = 0
d = 0
for i in range(n):
	for j in range(m):
		if list1[i][j] == 'C':
			c = c + 1
			break
		elif list1[i][j] == 'M':
			c = c + 1
			break
		elif list1[i][j] == 'Y':
			c = c + 1
			break
		else:
			d = d + 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


a = list(map(int, input().split()))
(n, m) = (a[0], a[1])
b = []
for i in range(n):
	b.append(input().split())
res = '#Black&White'
for line in b:
	for color in line:
		if color in 'CMY':
			res = '#Color'
			break
print(res)


(m, n) = map(int, input().split())
a = []
c = 0
for _ in range(m):
	a = list(input())
	c += a.count('W') + a.count('B') + a.count('G')
if c == m * n:
	print('#Black&White')
else:
	print('#Color')


(rows, columns) = list(map(int, input().split()))
color = False
for i in range(rows):
	colors = list(map(str, input().split()))
	if colors.__contains__('C') or colors.__contains__('M') or colors.__contains__('Y'):
		color = True
		print('#Color')
		break
if not color:
	print('#Black&White')


(n, m) = map(int, input().split())
a = 0
for j in range(n):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		a = 1
		break
print('##BCloalcokr& W h i t e'[a == 1::2])


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


def func(n):
	for i in range(n[0]):
		k = list(map(str, input().split()))
		for i in k:
			if i in 'CMY':
				print('#Color')
				return
	print('#Black&White')
n = list(map(int, input().split()))
func(n)


(n, m) = map(int, input().split())
for i in range(n):
	l = list(map(str, input().split()))
	for j in range(m):
		if l[j] != 'B' and l[j] != 'W' and (l[j] != 'G'):
			print('#Color')
			exit(0)
print('#Black&White')


R = lambda : input().split()
(n, m) = R()
k = [1 for i in range(int(n)) if len(set(R()).intersection({'C', 'Y', 'M'})) != 0]
print(['#Color', '#Black&White'][len(k) == 0])


import os
import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from io import BytesIO, IOBase
from itertools import accumulate, combinations, combinations_with_replacement, groupby, permutations, product
from math import acos, asin, atan, ceil, cos, degrees, factorial, hypot, log2, pi, radians, sin, sqrt, tan
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits

def inp():
	return int(input())

def inlist():
	return list(map(int, input().split()))

def instr():
	s = input()
	return list(s[:len(s)])

def invr():
	return map(int, input().split())

def main():
	(n, m) = invr()
	res = '#Black&White'
	for i in range(n):
		temp = input().split()
		for c in temp:
			if c == 'C' or c == 'Y' or c == 'M':
				res = '#Color'
	print(res)
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))

def input():
	return sys.stdin.readline().rstrip('\r\n')
main()


(n, m) = map(int, input().split())
pixels = []
for i in range(0, n):
	pixels.extend(list(map(str, input().split())))
bw = True
for i in range(0, n * m):
	if pixels[i] != 'B' and pixels[i] != 'W' and (pixels[i] != 'G'):
		bw = False
		break
if bw:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
mtrx = [input().split() for i in range(n)]
flag = False
for line in mtrx:
	for char in line:
		if char in ('C', 'M', 'Y'):
			print('#Color')
			flag = True
			break
	if flag:
		break
else:
	print('#Black&White')


a = input()
b = []
d = 0
a = a.split(' ')
for x in range(int(a[0])):
	b.append(input())
for y in range(0, int(a[0])):
	for i in range(0, len(b[0]), 2):
		if b[y][i] == 'W' or b[y][i] == 'B' or b[y][i] == 'G':
			pass
		else:
			d += 1
			break
	if d > 0:
		break
if d == 0:
	print('#Black&White')
else:
	print('#Color')


import sys
fin = sys.stdin
fout = sys.stdout
(n, m) = 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')
			exit()
fout.write('#Black&White')


numbers = input()
numbers = numbers.split()
x = int(numbers[0])
flag = 0
for i in range(x):
	str = input()
	if str.find('C') != -1 or str.find('M') != -1 or str.find('Y') != -1:
		flag = 1
if flag:
	print('#Color')
else:
	print('#Black&White')


dimensions = [int(n) for n in input().split()]
r = dimensions[0]
mat = []
new = []
for i in range(r):
	colors = [n for n in input().split()]
	mat.append(colors)
for i in mat:
	for j in i:
		new.append(j)
a = set(new)
if set(new) == {'B'} or set(new) == {'W'} or set(new) == {'G'} or (set(new) == {'W', 'B'}) or (set(new) == {'W', 'G'}) or (set(new) == {'G', 'B'}) or (set(new) == {'W', 'G', 'B'}):
	print('#Black&White')
else:
	print('#Color')


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


(x, y) = map(int, input().split())
list_ = []
for i in range(x):
	z = map(str, input().split())
	list_.extend(z)
if 'C' in list_ or 'M' in list_ or 'Y' in list_:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(list(map(str, input().split())))
flag = '#Black&White'
for i in l:
	if flag == '#Color':
		break
	for j in i:
		if j == 'M' or j == 'C' or j == 'Y':
			flag = '#Color'
			break
print(flag)


import sys
(n, m) = map(int, input().split())
for i in range(0, n):
	row = list((x for x in input().split()))
	for s in row:
		if 'BGW'.find(s) == -1:
			print('#Color')
			sys.exit()
print('#Black&White')


def solve(ll):
	for i in ll:
		c = 0
		for j in i:
			if j not in 'WBG':
				return '#Color'
	return '#Black&White'
(n, k) = map(int, input().split())
ll = [input().split() for _ in range(n)]
print(solve(ll))


(n, m) = map(int, input().split())
flag = False
c = 0
for _ in range(n):
	s = set(input().upper())
	if 'C' in s or 'M' in s or 'Y' in s:
		c = 1
	if c == 1:
		break
if c == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
a = [list(map(str, input().split())) for _ in range(n)]
l = 0
for i in range(n):
	for j in range(m):
		if a[i][j] == 'Y' or a[i][j] == 'C' or a[i][j] == 'M':
			l = l + 1
			break
if l == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(i) for i in input().split()]
line = []
k = 0
for i in range(n):
	list = [str(w) for w in input().split()]
	line += list
for j in line:
	if j == 'C':
		output = '#Color'
	elif j == 'Y':
		output = '#Color'
	elif j == 'M':
		output = '#Color'
	else:
		k += 1
if k == n * m:
	output = '#Black&White'
else:
	output = '#Color'
print(output)


(n, m) = map(int, input().split())
flag = 0
color = ['C', 'M', 'Y']
for i in range(n):
	t = [i for i in input().split()]
	for j in t:
		if j in color:
			flag = 1
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


n = int(input().split()[0])
r = 1
while n:
	r &= all((x in ' WGB' for x in input()))
	n -= 1
print(['#Color', '#Black&White'][r])


(r, c) = map(int, input().split())
B = True
C = {'C', 'M', 'Y'}
for i in range(r):
	A = input().split()
	for x in A:
		if x in C:
			B = False
if B:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
(photo, answer) = ([[i for i in input().split()] for _ in range(n)], '#Black&White')
for i in range(n):
	for j in range(m):
		if photo[i][j] in ('C', 'M', 'Y'):
			answer = '#Color'
print(answer)


(n, m) = [int(x) for x in input().split()]
pixel = []
check = True
for i in range(0, n):
	pixel.append(input().split())
for i in range(0, n):
	for j in range(0, m):
		if pixel[i][j] == 'C' or pixel[i][j] == 'M' or pixel[i][j] == 'Y':
			check = False
			break
if not check:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
count = 0
z = ['W', 'G', 'B']
for i in range(n):
	l = list(map(str, input().split()))
	for j in l:
		if j in z:
			count += 1
if count == n * m:
	print('#Black&White')
else:
	print('#Color')


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


def main():
	(x, y) = map(int, input().split())
	l = []
	for i in range(x):
		l += [i for i in input().split()]
	if 'C' in l or 'M' in l or 'Y' in l:
		print('#Color')
	else:
		print('#Black&White')
main()


(n, m) = map(int, input().split())
a = [[j for j in input().split()] for i in range(n)]
c = 0
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':
			c = 1
			break
		elif a[i][j] == 'W' or a[i][j] == 'B' or a[i][j] == 'G':
			continue
if c == 1:
	print('#Color')
else:
	print('#Black&White')


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


import itertools
c = ['C', 'Y', 'M']
b = ['W', 'G', 'B']
(m, n) = [int(i) for i in input().split(' ')]
l1 = []
while m:
	l1.append(input().split(' '))
	m = m - 1
l1 = list(itertools.chain.from_iterable(l1))
fl = 0
for i in l1:
	if i in c:
		break
	else:
		fl = fl + 1
if fl == len(l1):
	print('#Black&White')
else:
	print('#Color')


n = input().split(' ')
array = []
aux = 0
for i in range(int(n[0])):
	array.append(input().split(' '))
for i in array:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			aux = 1
if aux == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
flag = 0
for line in range(n):
	L = list(input().split())
	if 'C' in L or 'M' in L or 'Y' in L:
		flag += 1
print('#Color') if flag else print('#Black&White')


count = int(input().split(' ')[0])
output = ''
for i in range(count):
	output += input()
if 'C' in output or 'M' in output or 'Y' in output:
	print('#Color')
else:
	print('#Black&White')


(a, b) = list(map(int, input().split(' ')))
c = list()
for i in range(0, a):
	d = list(map(str, input().split(' ')))
	c.append(d)
for i in c:
	if 'C' in i or 'M' in i or 'Y' in i:
		print('#Color')
		break
else:
	print('#Black&White')


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()


(n, m) = map(int, input().split())
z = []
for i in range(n):
	a = list(input().split())
	z.extend(a)
if 'C' in z or 'M' in z or 'Y' in z:
	print('#Color')
else:
	print('#Black&White')


(m, n) = input().split()
(m, n) = (int(m), int(n))
c = 0
for i in range(m):
	temp = input().split()
	c += temp.count('C')
	c += temp.count('M')
	c += temp.count('Y')
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().strip().split(' ')]
f = False
for i in range(n):
	a = input().strip().split(' ')
	for j in range(m):
		if a[j] != 'W' and a[j] != 'B' and (a[j] != 'G'):
			f = True
if f:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for _ in range(n):
	for ch in input():
		if ch in {'M', 'Y', 'C'}:
			print('#Color')
			exit(0)
print('#Black&White')


(r, c) = input().split()
r = int(r)
c = int(c)
a = []
b = False
for i in range(0, r):
	a.append(input().split())
for i in range(0, r):
	for j in range(0, c):
		if a[i][j] == 'C' or a[i][j] == 'M' or a[i][j] == 'Y':
			b = True
			break
if b == True:
	print('#Color')
else:
	print('#Black&White')


(rows, cols) = [int(i) for i in input().split()]
colors = []
flag = 0
for i in range(rows):
	colors.append(input().split())
for i in range(rows):
	for j in range(cols):
		if colors[i][j] == 'C' or colors[i][j] == 'M' or colors[i][j] == 'Y':
			print('#Color')
			flag += 1
			break
	if colors[i][j] == 'C' or colors[i][j] == 'M' or colors[i][j] == 'Y':
		break
if flag == 0:
	print('#Black&White')


def find(l):
	for x in l:
		if len({'C', 'M', 'Y'}.intersection(set(x))) > 0:
			return True
	return False
(n, k) = [int(__) for __ in input().strip().split()]
l = []
for _ in range(n):
	l.append(input().strip().split())
res = find(l)
print('#Color' if res else '#Black&White')


(n, _) = list(map(int, input().split()))
res = '#Black&White'
for _ in range(n):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		res = '#Color'
print(res)


(r, c) = 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')


(r, c) = input().split(' ')
r = int(r)
c = int(c)
bw = 'BWG'
color = 'CMY'
l = []
for i in range(r):
	a = input().split(' ')
	l.append(a)
flag = 0
for i in range(r):
	if flag == 1:
		break
	for j in range(c):
		if l[i][j] in color:
			flag = 1
			break
		else:
			flag = 0
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


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


numbers = [int(i) for i in input().split()]
n = numbers[0]
m = numbers[1]
inp = []
for x in range(n):
	nums = [i for i in input().split()]
	inp.append(nums)
flag = False
for item in inp:
	for value in item:
		if value in 'CMY':
			flag = True
			break
	if flag == True:
		break
if flag == True:
	print('#Color')
else:
	print('#Black&White')


(n, m) = input().split()
(n, m) = (int(n), int(m))
colors = set()
for i in range(n):
	for x in input().split():
		colors.add(x)
print('#Color' if 'C' in colors or 'M' in colors or 'Y' in colors else '#Black&White')


(n, m) = map(int, input().split())
mat = [input().split() for i in range(n)]
t = 0
for i in range(n):
	if set('CMY') & set(mat[i]):
		t = 1
		break
print('#Color' if t == 1 else '#Black&White')


(a, b) = map(int, input().split())
color = False
for c in range(a):
	d = input().split()
	for a in d:
		if a != 'W' and a != 'B' and (a != 'G'):
			color = True
if color == False:
	print('#Black&White')
else:
	print('#Color')


def photos(lst):
	flag = 1
	for elem in lst:
		for i in elem:
			if i == 'C' or i == 'M' or i == 'Y':
				flag = 0
	if flag == 1:
		return '#Black&White'
	return '#Color'
(n, m) = [int(z) for z in input().split()]
a = list()
for x in range(n):
	s = input()
	a.append(s)
print(photos(a))


(n, _) = map(int, input().split())
s = ''.join((input() for i in range(n)))
if s.find('C') + s.find('M') + s.find('Y') == -3:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split(' ')]
colored = False
colors = ['C', 'M', 'Y']
for i in range(n):
	arr = input().split(' ')
	for j in arr:
		if j in colors:
			colored = True
			break
	if colored:
		break
print('#Color' if colored else '#Black&White')


(m, n) = map(int, input().split())
a = 0
for i in range(m):
	l = input().split()
	if a == 2:
		break
	for j in range(n):
		if l[j] == 'W' or l[j] == 'B' or l[j] == 'G':
			a = 1
		else:
			a = 2
			break
if a == 1:
	print('#Black&White')
if a == 2:
	print('#Color')


x = input().split()
k = int(x[0])
z = int(x[1])
f = True
i = 0
while i < k:
	y = list(map(str, input().split()))
	m = 0
	while m < z and f == True:
		if y[m] == 'W' or y[m] == 'G' or y[m] == 'B':
			f = True
		else:
			f = False
			break
		m += 1
	i += 1
if f == False:
	print('#Color')
elif f == True:
	print('#Black&White')


import sys
(n, m) = sys.stdin.readline().split()
n = int(n)
m = int(m)
Black = True
for i in range(n):
	val = sys.stdin.readline().split()
	for j in val:
		if j in ['C', 'M', 'Y']:
			Black = False
			break
	if Black == False:
		break
if Black:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
found = False
for _ in range(n):
	lst = list(map(str, input().split()))
	if 'Y' in lst or 'M' in lst or 'C' in lst:
		found = True
		break
if not found:
	print('#Black&White')
else:
	print('#Color')


check = False
(r, c) = input().split(' ')
for i in range(int(r)):
	x = list(input().split(' '))
	if x.__contains__('Y') or x.__contains__('M') or x.__contains__('C'):
		print('#Color')
		check = True
		break
if not check:
	print('#Black&White')


(n, m) = map(int, input().split())
ans = ''
c_res = []
for _ in range(n):
	s = [str(x) for x in input().split()]
	res = []
	for i in s:
		if i not in res:
			res.append(i)
	b_w = ['W', 'G', 'B']
	for i in res:
		if i not in b_w:
			c_res.append(i)
			break
	if len(c_res) == 0:
		ans = '#Black&White'
	else:
		ans = '#Color'
print(ans)


t = list(map(int, input().split()))
l = []
for _ in range(t[0]):
	n = list(input().split())
	for i in range(t[1]):
		l.append(n[i])
l = ''.join(l)
if 'W' in l:
	l = l.replace('W', '')
if 'B' in l:
	l = l.replace('B', '')
if 'G' in l:
	l = l.replace('G', '')
if l == '':
	print('#Black&White')
else:
	print('#Color')


matrix = input()
(r, c) = matrix.split(' ')
count = 0
r_dict = []
while count < int(r):
	row = input()
	r_dict.append(row.split(' '))
	count += 1
flag = 0
for x in r_dict:
	if 'C' in x or 'M' in x or 'Y' in x:
		flag = 1
		break
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
photo = []
result = '#Black&White'
for _ in range(n):
	photo.append(list(map(str, input().split())))
	if result == '#Black&White' and len(set(['C', 'M', 'Y']).intersection(photo[-1])) > 0:
		result = '#Color'
print(result)


import sys
(n, m) = map(int, input().split())
flag = 0
for i in range(n):
	v = input().split()
	for j in v:
		if not j in ['W', 'B', 'G']:
			print('#Color')
			flag = 1
			break
	if flag:
		break
if not flag:
	print('#Black&White')


str = input()
arr = str.split()
n = int(arr[0])
m = int(arr[1])
for i in range(n):
	str = input()
	arr = str.split()
	for j in range(m):
		if arr[j] == 'C' or arr[j] == 'M' or arr[j] == 'Y':
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split(' '))
bwg = cl = 0
for i in range(n):
	list1 = map(str, input().split(' '))
	for i in list1:
		if i in 'CMY':
			cl += 1
		else:
			bwg += 1
if bwg == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
color = []
for i in range(n):
	color += input().split()
argument = len([1 for c in 'CYM' if c in color]) > 0
print('#Color' if argument else '#Black&White')


(n, m) = [int(n) for n in input().split()]
a = 0
for i in range(n):
	list1 = input().split()
	if 'C' in list1 or 'Y' in list1 or 'M' in list1:
		a = a + 1
if a == 0:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
c = []
k = 0
e = ['G', 'W', 'B']
f = ['C', 'M', 'Y']
for i in range(a):
	d = list(map(str, input().split()))
	c.append(d)
for i in range(a):
	for j in range(b):
		if c[i][j] in f:
			k += 1
			if k >= 1:
				break
if k >= 1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
for _ in ' ' * a:
	c = input()
	if any((i in c for i in ['Y', 'M', 'C'])):
		print('#Color')
		exit()
print('#Black&White')


import sys
nm = sys.stdin.readline()
while nm:
	(n, m) = [int(val) for val in nm.split()]
	is_c = False
	while n:
		row = sys.stdin.readline().replace(' ', '')
		if 'C' in row or 'M' in row or 'Y' in row:
			is_c = True
		n -= 1
	if is_c:
		print('#Color')
	else:
		print('#Black&White')
	nm = sys.stdin.readline()


(n, m) = map(int, input().split())
bw = True
for _ in range(n):
	line = input().split()
	for c in 'CMY':
		if c in line:
			bw = False
if bw:
	print('#Black&White')
else:
	print('#Color')


from sys import stdin, stdout
(n, m) = map(int, stdin.readline().split())
for _ in range(n):
	l = [x for x in stdin.readline().split()]
	for x in l:
		if x == 'C' or x == 'M' or x == 'Y':
			print('#Color')
			flag = 1
			break
	else:
		continue
	if flag == 1:
		break
else:
	print('#Black&White')


from sys import stdin, stdout
(n, m) = map(int, stdin.readline().split())
ht = '#Black&White'
for i in range(n):
	for f in stdin.readline().split():
		if f in 'CMY':
			ht = '#Color'
stdout.write(ht)


(n, m) = input().split()
val = 0
for i in range(int(n)):
	lst = list(input().strip().split())[:int(m)]
	for i in lst:
		if i == 'C' or i == 'M' or i == 'Y':
			val += 1
			break
if val == 0:
	print('#Black&White')
else:
	print('#Color')


def check(s, isColor):
	for j in range(len(s)):
		if s[j] == 'M' or s[j] == 'Y' or s[j] == 'C':
			isColor += 1
	return isColor
n = 0
m = 0
isColor = 0
inp = input()
(n, m) = inp.split(' ')
for i in range(int(n)):
	s = input()
	isColor = check(s, isColor)
if isColor:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
o = 0
for i in range(n):
	b = list(input().split())
	if 'C' in b or 'M' in b or 'Y' in b:
		o += 1
	else:
		continue
if o > 0:
	print('#Color')
else:
	print('#Black&White')


from collections import deque, Counter
import array
from itertools import combinations, permutations
from math import sqrt
import unittest

def read_int():
	return int(input().strip())

def read_int_array():
	return [int(i) for i in input().strip().split(' ')]
(n, m) = read_int_array()
cs = set(('C', 'M', 'Y'))
for _ in range(n):
	if cs & set(input().strip().split(' ')):
		print('#Color')
		exit()
print('#Black&White')


(n, m) = map(int, input().split(' '))
M = []
for i in range(n):
	x = input().split(' ')
	M.extend(x)
B = ['B', 'W', 'G']
C = ['C', 'M', 'Y']
c = 0
b = 0
M = set(M)
for i in range(3):
	if B[i] in M:
		b += 1
	if C[i] in M:
		c += 1
if b > 0 and c == 0:
	print('#Black&White')
if c > 0:
	print('#Color')


for i in range(tuple(map(int, input().split()))[0]):
	if any(map(lambda point: point not in ('W', 'G', 'B'), input().split())):
		print('#Color')
		break
else:
	print('#Black&White')


a = [int(i) for i in input().split()]
for i in range(a[0]):
	w = input()
	if 'C' in w or 'M' in w or 'Y' in w:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = [int(s) for s in input().split()]
color = 0
for i in range(n):
	line = input().split()
	for j in range(m):
		if line[j] != 'B' and line[j] != 'W' and (line[j] != 'G'):
			color += 1
if color > 0:
	print('#Color')
else:
	print('#Black&White')


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()


(n, m) = map(int, input().split())
main_colors = {'C', 'M', 'Y'}
row = []
for i in range(n):
	x = input().split()
	row += [i for i in x]
image = set(row)

def check_color(main_colors, image):
	out = '#Black&White'
	intersec = main_colors.intersection(image)
	if len(intersec) != 0:
		out = '#Color'
	return out
res = check_color(main_colors, image)
print(res)


(r, c) = list(map(int, input().split()))
mat = []
for i in range(r):
	s = list(map(str, input().split()))
	mat.append(s)
b = 0
w = 0
g = 0
for i in range(r):
	b += mat[i].count('B')
	w += mat[i].count('W')
	g += mat[i].count('G')
if b + w + g == r * c:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
flag = False
for i in range(n):
	s = list(set(input().split()))
	for k in s:
		if k == 'W' or k == 'B' or k == 'G':
			pass
		else:
			flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


import sys

def read_and_solve():
	(n, m) = map(int, next(sys.stdin).split())
	isBlack = True
	for _ in range(n):
		colors = next(sys.stdin).split()
		isBlack = isBlack and all((c in 'BGW' for c in colors))
	return isBlack
isBlack = read_and_solve()
print('#Black&White' if isBlack else '#Color')


quant = [int(x) for x in input().upper().split()]
color_matrix = []
for i in range(quant[0]):
	x = ' '.join(input().upper().split())
	color_matrix.append(x)
color_matrix = ' '.join(color_matrix).split()
if 'C' in color_matrix or 'M' in color_matrix or 'Y' in color_matrix:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for i in range(n):
	for x in input().split():
		if x not in 'BWG':
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
rows = []
count = 0
for _ in range(n):
	rows.append(input().split())
for row in rows:
	if 'C' in row or 'M' in row or 'Y' in row:
		count = 1
		break
	else:
		count = 0
if count == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
flag = False
for i in range(n):
	t = set(input().split())
	if t & {'C', 'M', 'Y'} != set():
		flag = True
print('#Color' if flag else '#Black&White')


(n, m) = map(int, input().split())
li = []
for i in range(n):
	ll = [x for x in input().split()]
	li += ll
ncount = 0
if 'C' in li:
	print('#Color')
elif 'Y' in li:
	print('#Color')
elif 'M' in li:
	print('#Color')
else:
	print('#Black&White')


(rows, columns) = [int(i) for i in input().split(' ')]
bw = True
while rows > 0:
	colors = input().split(' ')
	if 'C' in colors or 'M' in colors or 'Y' in colors:
		bw = False
		break
	rows = rows - 1
if bw:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
row = list()
for _ in range(a):
	row += [i for i in input().split()]
if row.count('C') + row.count('M') + row.count('Y') == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
arr = []
bw = ['B', 'W', 'G']
if m == 1:
	flag = 0
	for i in range(n):
		arr.append(input())
	for x in arr:
		if x not in bw:
			print('#Color')
			flag = 1
			break
	if flag == 0:
		print('#Black&White')
else:
	for i in range(n):
		listt = input().split()
		arr.append(listt)
	flag = 0
	for listt in arr:
		li = listt
		if flag == 0:
			for color in li:
				if color not in bw:
					print('#Color')
					flag = 1
					break
	if flag == 0:
		print('#Black&White')


C = 'CMY'

def solve():
	(n, m) = map(int, input().split())
	p = [input().split() for _ in range(n)]
	for ni in range(n):
		for mi in range(m):
			if p[ni][mi] in C:
				print('#Color')
				return
	print('#Black&White')

def main():
	solve()
main()


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


import re
(bw, cl) = ('#Black&White', '#Color')

def sclr(v):
	for x in v:
		if re.search('[CMY]', x):
			return 1
	return 0
(n, m) = [int(x) for x in input().split()]
v = []
for x in range(n):
	v.append(input())
print(cl if sclr(v) else bw)


import sys
f = sys.stdin
(n, m) = map(int, f.readline().strip().split())
res = False
for i in range(n):
	a = [u for u in f.readline().strip().split()]
	for it in a:
		if it in ('C', 'M', 'Y'):
			res = True
			break
if res:
	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()


(x, y) = map(int, input().split())
ans = '#Black&White'
for f1 in range(x):
	l = list(map(str, input().split()))
	for f2 in l:
		if f2 == 'C' or f2 == 'M' or f2 == 'Y':
			ans = '#Color'
print(ans)


(n, m) = map(int, input().split())
mat = []
b = 1
for i in range(n):
	row = list(input().split())
	mat.append(row)
for row in mat:
	if 'C' in row or 'M' in row or 'Y' in row:
		b = 0
		break
	else:
		pass
print('#Black&White' if b == 1 else '#Color')


(rows, columns) = [int(a) for a in input().strip().split()]
color_matrix = []
for _ in range(rows):
	color_matrix.append([a for a in input().strip().split()])
colored = False
for row in color_matrix:
	for color in row:
		if color == 'C' or color == 'M' or color == 'Y':
			colored = True
			break
if colored:
	print('#Color')
else:
	print('#Black&White')


def color_ornot():
	pixel = input().split()
	colors = []
	dic = {'C', 'M', 'Y'}
	for i in range(int(pixel[0])):
		colors.append(input().split())
	for i in range(len(colors)):
		for j in range(len(colors[i])):
			if colors[i][j] in dic:
				print('#Color')
				return
	print('#Black&White')
color_ornot()


nm = list(map(int, input().split(' ')))
n = nm[0]
m = nm[1]
ans = 0
arr = []

def index(a_list, value):
	try:
		return a_list.index(value)
	except ValueError:
		return -1
for _ in range(n):
	arr.append(input().split())
for i in range(len(arr)):
	if index(arr[i], 'C') != -1 or index(arr[i], 'M') != -1 or index(arr[i], 'Y') != -1:
		ans = 1
if ans == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
colour = {'C', 'M', 'Y'}
c_flag = True
for i in range(n):
	temp = list(map(str, input().split()))
	for j in temp:
		if j in colour and c_flag:
			c_flag = False
			print('#Color')
if c_flag:
	print('#Black&White')


(n, m) = map(int, input().split())
bw = True
while n > 0 and bw:
	n -= 1
	s = input().split()
	for i in range(m):
		if s[i] != 'W' and s[i] != 'G' and (s[i] != 'B'):
			bw = False
			break
if bw:
	print('#Black&White')
else:
	print('#Color')


def colored(ls):
	if 'C' in ls or 'Y' in ls or 'M' in ls:
		return True
	return False

def magic():
	(n, k) = [int(x) for x in input().split()]
	for i in range(n):
		if colored(input().split()):
			return '#Color'
	return '#Black&White'
print(magic())


s = ''
for i in range(int(input()[0])):
	s += input()
print('#Color' * (len(set('CMY') & set(s)) != 0) or '#Black&White')


def nod(a, b):
	while a != b:
		(a, b) = (max(a, b), min(a, b))
		if a % b == 0:
			a -= (a // b - 1) * b
		else:
			a -= a // b * b
	return a
for t in range(1):
	(n, m) = [int(x) for x in input().split()]
	s = set(['C', 'M', 'Y'])
	res = True
	for i in range(n):
		for j in input().split():
			if j in s:
				res = False
				break
		if not res:
			break
	print('#Color' if not res else '#Black&White')


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


(n, m) = list(map(int, input().split()))
bnw = {'W', 'B', 'G'}
res = '#Black&White'
for i in range(n):
	a = input().split()
	for i in a:
		if i not in bnw:
			res = '#Color'
print(res)


(a, b) = list(map(int, input().split()))
m = '#Black&White'
for i in range(a):
	f = list(input().split())
	for j in range(b):
		if f[j] == 'C' or f[j] == 'M' or f[j] == 'Y':
			m = '#Color'
			print(m)
			break
	if m == '#Color':
		break
	elif i == a - 1:
		print(m)


(a, b) = map(int, input().strip().split())
c = 0
for n in range(a):
	p = list(map(str, input().split()))
	if 'C' in p:
		c = c + 1
	elif 'M' in p:
		c = c + 1
	elif 'Y' in p:
		c = c + 1
	else:
		c = c
if c == 0:
	print('#Black&White')
else:
	print('#Color')


(m, n) = map(int, input().split())
c = 0
M = 0
y = 0
w = 0
g = 0
b = 0
for i in range(m):
	string = input()
	c += string.count('C')
	M += string.count('M')
	y += string.count('Y')
	w += string.count('W')
	g += string.count('G')
	b += string.count('B')
if c == 0 and M == 0 and (y == 0):
	print('#Black&White')
else:
	print('#Color')


import sys
numbers = [int(i) for i in sys.stdin.readline().split()]
(n, m) = (numbers[0], numbers[1])
matrix = [[0 for x in range(m)] for y in range(n)]
row = 0
for line in sys.stdin:
	column = 0
	for word in line.split():
		matrix[row][column] = word
		column += 1
	row += 1
for row in range(n):
	if 'C' in matrix[row] or 'M' in matrix[row] or 'Y' in matrix[row]:
		print('#Color')
		exit()
print('#Black&White')


color = 'CMY'
(n, m) = map(int, input().split())
a = ''
for i in range(n):
	a += ''.join(input().split())
for i in a:
	if i in 'CMY':
		print('#Color')
		break
else:
	print('#Black&White')


(a, b) = map(int, input().split())
coresl = []
cores = ' '
for x in range(a):
	cores += input()
if 'C' in cores or 'M' in cores or 'Y' in cores:
	print('#Color')
else:
	print('#Black&White')


(N, M) = map(int, input().split())
mybool = True
for i in range(N):
	a = input().split()
	if (a.count('C') > 0 or a.count('M') > 0 or a.count('Y') > 0) and mybool:
		mybool = False
if mybool:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
pp = True
for i in range(a):
	gg = str(input())
	for j in gg:
		if j == 'C' or j == 'M' or j == 'Y':
			pp = False
			break
if pp == False:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
flag = 0
arr = ['W', 'B', 'G']
for i in range(a):
	ar = input().split()
	for j in ar:
		if j not in arr:
			flag = 1
print(('#Black&White', '#Color')[flag])


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


dimension = input().split(' ')
l1 = []
for i in range(int(dimension[0])):
	colorrow = input()
	l1.append(colorrow)
count = 0
for ele in l1:
	if 'C' in ele or 'M' in ele or 'Y' in ele:
		print('#Color')
		break
	else:
		count = count + 1
if count == int(dimension[0]):
	print('#Black&White')


(rows, col) = map(int, input().split())
mylist = [[None] * col] * rows
check = 0
for i in range(rows):
	mylist[i] = list(input().split())
for i in range(rows):
	for j in range(col):
		if mylist[i][j] == 'C' or mylist[i][j] == 'M' or mylist[i][j] == 'Y':
			check = 1
			print('#Color')
			break
	if check == 1:
		break
if check == 0:
	print('#Black&White')


(n_rows, n_lines) = [int(x) for x in input().split()]
colored = False
for x in range(n_rows):
	if not colored:
		row = input()
		if 'C' in row or 'M' in row or 'Y' in row:
			colored = True
	else:
		input()
if colored:
	print('#Color')
else:
	print('#Black&White')


def main():
	(m, n) = map(int, input().split())
	c = ''
	for i in range(m):
		x = input()
		x = x.split()
		for i in x:
			if i in ['C', 'M', 'Y']:
				c = '#Color'
	if c:
		print(c)
	else:
		print('#Black&White')
main()


(n, m) = list(map(int, input().split()))
temp = []
arr = []
while n:
	temp = list(map(str, input().split()))
	for i in range(m):
		arr.append(temp[i])
	n = n - 1
arr = set(arr)
arr = list(arr)
arr.sort()
if len(arr) == 2:
	if arr[0] == 'B' and arr[1] == 'W':
		print('#Black&White')
	else:
		print('#Color')
elif len(arr) == 3:
	if arr[0] == 'B' and arr[1] == 'G' and (arr[2] == 'W'):
		print('#Black&White')
	else:
		print('#Color')
elif len(arr) == 1:
	if arr[0] == 'B' or arr[0] == 'W' or arr[0] == 'G':
		print('#Black&White')
	else:
		print('#Color')
else:
	print('#Color')


Datos1 = input('')
Datos1 = Datos1.split()
N = int(Datos1[0])
M = int(Datos1[1])
MX = [[0 for X in range(M)] for Y in range(N)]
Res = '#Black&White'
for K in range(N):
	Datos2 = input('')
	Datos2 = Datos2.split()
	for J in range(M):
		MX[K][J] = Datos2[J]
		if MX[K][J] == 'C' or MX[K][J] == 'M' or MX[K][J] == 'Y':
			Res = '#Color'
print(Res)


dimensions = input().split()
n = int(dimensions[0])
m = int(dimensions[1])
colors = ['C', 'M', 'Y']
hashTag = '#Black&White'
i = 0
while hashTag == '#Black&White' and i < n:
	inp = input().split()
	for color in inp:
		if color in colors:
			hashTag = '#Color'
			break
	i += 1
print(hashTag)


(n, m) = map(int, input().split())
pp = []
t = False
for i in range(0, n):
	for j in input().split():
		if j in ['C', 'M', 'Y']:
			t = True
if t == True:
	print('#Color')
else:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
a = []
for i in range(n):
	p = list(input().split())
	a.append(p)
k = 0
for i in a:
	if 'C' in i or 'M' in i or 'Y' in i:
		print('#Color')
		k = 1
		break
if k == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
c = 0
for _ in range(n):
	a = input()
	if 'C' in a:
		c = 1
	elif 'M' in a:
		c = 1
	elif 'Y' in a:
		c = 1
print(['#Color', '#Black&White'][c == 0])


YX = input().split()
Color = True
for i in range(int(YX[0])):
	colors = input()
	if colors.count('C') > 0 or colors.count('M') > 0 or colors.count('Y') > 0:
		print('#Color')
		Color = False
		break
if Color:
	print('#Black&White')


(a, b) = map(int, input().split())
list = []
go = True
for i in range(a):
	list.append([i for i in input().split()][:b])
for item in list:
	if 'C' in item or 'M' in item or 'Y' in item:
		print('#Color')
		go = False
		break
if go:
	print('#Black&White')


(n, m) = map(int, input().split())
colour = False
for i in range(n):
	f = list(map(str, input().split()))
	if colour != True:
		if f.count('C') or f.count('M') or f.count('Y'):
			colour = True
if colour:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
colors = []
for _ in range(n):
	colors.append([i for i in input().split()])

def func():
	for c in colors:
		for d in c:
			if d == 'C' or d == 'M' or d == 'Y':
				return '#Color'
	return '#Black&White'
print(func())


import re
(row, col) = [int(x) for x in input().strip().split(' ')]
for x in range(row):
	if re.search('[CMY]', input()):
		print('#Color')
		break
	elif x == row - 1:
		print('#Black&White')


def decide(n, m):
	for i in range(n):
		li = input().split()
		for l in li:
			if l == 'C' or l == 'M' or l == 'Y':
				return '#Color'
			else:
				continue
	return '#Black&White'
nxm = input().split()
n = int(nxm[0])
m = int(nxm[1])
print(decide(n, m))


(n, m) = [int(x) for x in input().split()]
color = []
for i in range(n):
	color.append(''.join(input().split()))
colors = ''.join(color)
if 'C' in colors or 'M' in colors or 'Y' in colors:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
k = []
h = ['W', 'G', 'B']
l = 0
for i in range(a):
	k.append(input().split())
for i in range(a):
	for j in range(b):
		if k[i][j] in h:
			l += 1
if l == a * b:
	print('#Black&White')
elif l != a * b:
	print('#Color')


(n, m) = [int(i) for i in input().split()]
d = []
for i in range(n):
	s = [str(i) for i in input().split()]
	d.append(s)
f = []
for sublist in d:
	for item in sublist:
		f.append(item)
if 'C' in f or 'M' in f or 'Y' in f:
	print('#Color')
else:
	print('#Black&White')


a = list(map(int, input().split()))
b = []
c = True
for r in range(0, a[0]):
	c = list(map(str, input().split()))
	b.append(c)
for r in range(0, len(b)):
	for i in range(0, a[1]):
		if b[r][i] == 'C' or b[r][i] == 'M' or b[r][i] == 'Y':
			print('#Color')
			c = False
			break
	if c == False:
		break
if c:
	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')


def is_color():
	(n, m) = map(int, input().split())
	for r in range(n):
		c = [x for x in input().split()]
		for e in c:
			if e == 'C' or e == 'M' or e == 'Y':
				return True
	return False
if is_color():
	print('#Color')
else:
	print('#Black&White')


import sys
(x, y) = input().split()
x = int(x)
y = int(y)
for i in range(x):
	n = input()
	if 'C' in n or 'M' in n or 'Y' in n:
		print('#Color')
		sys.exit()
print('#Black&White')


s = list(input().split(' '))
k = False
for i in range(int(s[0])):
	t = list(input().split(' '))
	for j in range(int(s[1])):
		if t[j] != 'W' and t[j] != 'G' and (t[j] != 'B'):
			k = True
if k:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
v = []
z = ['B', 'W', 'G']
for i in range(a):
	a = list(input().split())
	v += a
s = list(set(v))
s.sort()
c = 0
if len(s) <= 3:
	for i in s:
		if i in z:
			f = 0
		else:
			f = 1
		c = max(c, f)
	if c == 0:
		print('#Black&White')
	else:
		print('#Color')
else:
	print('#Color')


import sys
import re
[h, w] = [int(n) for n in sys.stdin.readline().split()]
colored = False
for i in range(h):
	row = sys.stdin.readline()
	if bool(re.match('.*[CMY]', row)):
		colored = True
		break
if colored:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
arr = []
for i in range(n):
	arr.extend(list(map(str, input().split())))
if {'B', 'W', 'G'}.union(set(arr)) == {'B', 'W', 'G'}:
	print('#Black&White')
else:
	print('#Color')


import sys
(r, c) = [int(x) for x in input().split()]
game = True
arr = []
for i in range(r):
	arr.append(input().split())
for i in arr:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			game = False
			sys.exit()
if game == True:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
flag = 0
for j in range(n):
	lst = []
	lst = list(map(str, input().split()))
	for i in range(m):
		if lst[i] == 'C' or lst[i] == 'M' or (lst[i] == 'Y' and flag == 0):
			flag = 1
		if flag == 1:
			print('#Color')
			exit()
if flag == 0:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
colored = False
colors = set(['C', 'M', 'Y'])
for i in range(n):
	chars = input().split()
	for char in chars:
		if char in colors:
			colored = True
if colored:
	print('#Color')
else:
	print('#Black&White')


inp = input()
l = inp.split()
i = int(l[0])
j = int(l[1])
b = list()
for k in range(i):
	i1 = input()
	l = i1.split()
	b.extend(l)
if 'C' in b or 'M' in b or 'Y' in b:
	print('#Color')
else:
	print('#Black&White')


bnw = ['B', 'W', 'G']
(x, y) = map(int, input().split())
for q in range(x):
	z = list(input().split())
	for char in z:
		if char not in bnw:
			print('#Color')
			quit()
print('#Black&White')


(a, b) = map(int, input().split())
color = False
li = list()
for i in range(a):
	li = list(set(map(str, input().split())))
	if not color:
		for j in range(0, len(li)):
			if li[j] == 'C' or li[j] == 'M' or li[j] == 'Y':
				color = True
if color:
	print('#Color')
else:
	print('#Black&White')


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

def r(m, n):
	for i in range(n):
		a = [x for x in input().split()]
		if a.count('C') >= 1 or a.count('M') >= 1 or a.count('Y') >= 1:
			return '#Color'
	return '#Black&White'
print(r(m, n))


(n, m) = (int(i) for i in input().split())
c = 0
for i in range(n):
	r = input()
	c += r.count('W') + r.count('B') + r.count('G')
if c < n * m:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, _) = map(int, input().split())
for _ in range(n):
	for z in input().split():
		if z in 'CMY':
			print('#Color')
			sys.exit()
print('#Black&White')


(n, m) = map(int, input().split())
Colored = False
for i in range(n):
	a = [str(x) for x in input().split()]
	for x in a:
		if x in ['C', 'M', 'Y']:
			Colored = True
print('#Color' if Colored else '#Black&White')


(n, m) = map(int, input().split())
a = False
b = False
for i in range(n):
	h = list(input().split())
	for j in range(m):
		if h[j] in ['W', 'B', 'G']:
			a = True
		elif h[j] in ['C', 'M', 'Y']:
			b = True
if b:
	print('#Color')
else:
	print('#Black&White')


w = []
k = 0
(n, m) = map(int, input().split())
for i in range(n):
	w.append(input().upper().split())
for i in range(n):
	for j in range(m):
		if w[i][j] == 'C' or w[i][j] == 'M' or w[i][j] == 'Y':
			k += 1
			break
	if k != 0:
		print('#Color')
		break
if k == 0:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
r = '#Black&White'
for i in range(n):
	for s in input().split():
		if s in 'CMY':
			r = '#Color'
			break
print(r)


from sys import stdout, exit
colors = {'C', 'M', 'Y'}
matrix = input().split()
pixelsRaw = ''
for x in range(0, int(matrix[0])):
	pixelsRaw += input() + ' '
pixels = pixelsRaw.split()
for color in colors:
	if color in pixels:
		stdout.write('#Color')
		exit()
stdout.write('#Black&White')


import sys
lst = sys.stdin.read()
print(['#Black&White', '#Color']['C' in lst or 'M' in lst or 'Y' in lst])


(n, m) = list(map(int, input().strip().split(' ')))
inpu = []
for i in range(n):
	res = input().split(' ')
	inpu.append(res)
BW = ['B', 'W', 'G']
flag = 0
for i in range(len(inpu)):
	for j in inpu[i]:
		if j not in BW:
			print('#Color')
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


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


import sys
from random import choice, randint
inp = sys.stdin.readline
out = sys.stdout.write
flsh = sys.stdout.flush
sys.setrecursionlimit(10 ** 9)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def MI():
	return map(int, inp().strip().split())

def LI():
	return list(map(int, inp().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in inp().strip().split()]

def LF():
	return [float(x) for x in inp().strip().split()]

def LS():
	return inp().strip().split()

def I():
	return int(inp().strip())

def F():
	return float(inp().strip())

def S():
	return inp().strip()

def pf(s):
	return out(s + '\n')

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))

def main():
	(n, m) = MI()
	ans = ''
	f = 0
	for i in range(n):
		s = LS()
		if ('C' in s or 'Y' in s or 'M' in s) and f == 0:
			ans += '#Color'
			f = 1
	if f == 0:
		ans += '#Black&White'
	pf(ans)
main()


(n, m) = map(int, input().split())
l = ['C', 'M', 'Y']
p = []
for i in range(n):
	w = list(map(str, input().split()))
	p.append(w)
c = 0
for i in range(n):
	for j in range(m):
		if p[i][j] in l:
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
g = False
for i in range(n):
	k = list(input().split())
	if len([d for d in k if d not in ['W', 'G', 'B']]) > 0:
		g = True
if g:
	print('#Color')
else:
	print('#Black&White')


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


(n, a) = map(int, input().split())
color = 'CMY'
bw = 'WGB'
for i in range(n):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		print('#Color')
		break
else:
	print('#Black&White')


import itertools
(n, m) = map(int, input().split())
mat = [list(input().split()) for _ in range(n)]
pixels = list(itertools.chain(*mat))
if 'C' in pixels or 'M' in pixels or 'Y' in pixels:
	print('#Color')
else:
	print('#Black&White')


mn = [int(i) for i in input().split()]
m = mn[0]
n = mn[1]
bgw = 0
for i in range(m):
	color = input().split()
	for k in range(n):
		if color[k] == 'W' or color[k] == 'G' or color[k] == 'B':
			bgw += 1
if bgw != m * n:
	print('#Color')
else:
	print('#Black&White')


import sys

def photo(matrix):
	color = ['C', 'M', 'Y']
	answer = '#Black&White'
	for row in matrix:
		for char in row:
			if char in color:
				answer = '#Color'
				break
		if answer == '#Color':
			break
	return answer
for line in sys.stdin:
	(n, m) = [int(value) for value in line.split()]
	matrix = []
	for i in range(n):
		row = sys.stdin.readline().split()
		matrix.append(row)
	answer = photo(matrix)
	print(answer)


(n, m) = [int(x) for x in input().split()]
k = []
a = 0
for i in range(n):
	s = [str(x) for x in input().split()]
	k.append(s)
for j in k:
	if 'C' in j or 'M' in j or 'Y' in j:
		print('#Color')
		break
	else:
		a += 1
		if a == n:
			print('#Black&White')


(n, m) = [int(i) for i in input().split()]
colors = []
for i in range(n):
	colors += input().split()
if set(colors) <= {'B', 'W', 'G'}:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(input().split())
su = 0
for i in l:
	for j in i:
		if j in ('C', 'M', 'Y'):
			su += 1
if su == 0:
	print('#Black&White')
else:
	print('#Color')


a = list(map(int, input().split()))
table = []
for i in range(a[0]):
	b = list(input().split())
	table.append(b)
count = 0
for i in range(a[0]):
	for j in range(a[1]):
		if table[i][j] == 'C' or table[i][j] == 'M' or table[i][j] == 'Y':
			print('#Color')
			exit()
print('#Black&White')


(n, m) = map(int, input().split())
a = []
tag = '#Black&White'
for i in range(n):
	a.append(list(map(str, input().split())))
for i in range(n):
	for j in range(m):
		if a[i][j] != 'B' and a[i][j] != 'W' and (a[i][j] != 'G'):
			tag = '#Color'
print(tag)


(a, b) = [int(i) for i in input().split()]
value = ''
for i in range(a):
	s = input()
	c = s.count('C')
	m = s.count('M')
	y = s.count('Y')
	if c >= 1 or m >= 1 or y >= 1:
		value = '#Color'
		break
	else:
		value = '#Black&White'
print(value)


l = ['C', 'M', 'Y']
(n, m) = map(int, input().split())
f = 0
for _ in range(n):
	z = [i for i in input().split(' ')]
	for j in z:
		if j in l:
			f = 1
			break
if not f:
	print('#Black&White')
else:
	print('#Color')


(m, n) = [int(x) for x in input().split()]
photo = ['' for x in range(m)]
for x in range(m):
	photo[x] = input()
c = 0
bw = 0
for x in range(m):
	tmp = photo[x].split()
	for y in range(n):
		if tmp[y] == 'B' or tmp[y] == 'W':
			bw = 1
		elif tmp[y] == 'C' or tmp[y] == 'M' or tmp[y] == 'Y':
			c = 1
if c == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	a.append([str(a) for a in input().split()])
count = 0
for i in range(n):
	for j in range(m):
		if a[i][j] == 'W' or a[i][j] == 'G' or a[i][j] == 'B':
			count += 1
if count == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
photo = ''
for _ in range(n):
	photo += ''.join(input().split())
if 'C' in photo or 'M' in photo or 'Y' in photo:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
s = ' '
for i in range(n):
	a = input()
	s = s + a
c = s.find('C')
m = s.find('M')
y = s.find('Y')
w = s.find('W')
g = s.find('G')
b = s.find('B')
if c + m + y == -3:
	print('#Black&White')
else:
	print('#Color')


(a, b) = (int(i) for i in input().split())
x = '#Black&White'
for j in range(a):
	a = set(input().split())
	if 'C' in a or 'M' in a or 'Y' in a:
		x = '#Color'
print(x)


(x, y) = input().split()
(x, y) = (int(x), int(y))
for i in range(x):
	ls = input().split()
	for j in ls:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			quit()
print('#Black&White')


(n, m) = map(int, input().split(' '))
answer = '#Black&White'
for i in range(n):
	if sum([1 for x in input().split(' ') if x in ['W', 'G', 'B']]) != m:
		answer = '#Color'
		break
print(answer)


(n, m) = list(map(int, input().split()))
colors = []
invalid = ['C', 'M', 'Y']
for i in range(n):
	s = input().split()
	for j in s:
		colors.append(j)
if ('B' in colors or 'G' in colors or 'W' in colors) and all((i not in invalid for i in colors)):
	print('#Black&White')
else:
	print('#Color')


import math
import sys
from sys import *
from bisect import insort
import heapq
import collections
from collections import deque, defaultdict
from itertools import permutations, combinations, combinations_with_replacement
import random
import os
mod = 10 ** 9 + 7
MAX = sys.maxsize
MIN = -sys.maxsize - 1

def isPrime(n):
	if n > 1:
		for i in range(2, n):
			if n % i == 0:
				return False
		else:
			return True
	else:
		return False

def isPanagram(s):
	alphabet = 'abcdefghijklmnopqrstuvwxyz'
	for char in alphabet:
		if char not in s.lower():
			return False
	return True

def isEqual(list1):
	if len(list1) < 0:
		res = True
	res = all((ele == list1[0] for ele in list1))
	if res:
		return True
	else:
		return False

def remove_duplicate(list1):
	final_list = []
	for i in list1:
		if i not in final_list:
			final_list.append(i)
	return final_list % mod

def solve():
	mat = []
	(n, m) = map(int, input().split())
	for i in range(n):
		arr = list(map(str, input().split()))
		mat.append(arr)
	for i in range(n):
		for j in range(m):
			if mat[i][j] == 'C' or mat[i][j] == 'M' or mat[i][j] == 'Y':
				return '#Color'
	return '#Black&White'
result = solve()
stdout.write(str(result) + '\n')


(a, b) = [int(x) for x in input().split()]
c = ['C', 'M', 'Y']
col = False
for l in range(a):
	i = input()
	if not col:
		for color in c:
			if color in i:
				col = True
				break
print('#Color' if col else '#Black&White')


(n, m) = map(int, input().split())
a = [list(map(str, input().split())) for i in range(n)]
flag = 'B'
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':
			flag = 'C'
if flag == 'B':
	print('#Black&White')
elif flag == 'C':
	print('#Color')


(n, m) = [int(x) for x in input().split()]
bw = True
for i in range(n):
	p = input().split()
	for j in range(m):
		if p[j] in 'CMY':
			bw = False
			break
print('#Black&White' if bw else '#Color')


Colors = ['C', 'M', 'Y']
(n, m) = map(int, input().split())
M = []
for i in range(n):
	row = list(input().split())
	M.append(row)
co = True
for i in range(n):
	if co:
		for j in range(m):
			if M[i][j] in Colors:
				co = False
				break
if co:
	print('#Black&White')
else:
	print('#Color')


a = input()
s = a.split()
n = int(s[0])
m = int(s[1])
flag = True
if 1 <= n <= 100 and 1 <= m <= 100:
	for j in range(n):
		b = input()
		h = b.split()
		for i in range(m):
			if h[i] == 'C' or h[i] == 'M' or h[i] == 'Y':
				flag = False
	if flag is True:
		print('#Black&White')
	else:
		print('#Color')


(r, c) = map(int, input().split())
pixels = ''.join([input() for x in range(r)])
iscolor = any([c in pixels for c in 'CMY'])
print(['#Black&White', '#Color'][iscolor])


(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')


(n, _) = map(int, input().split())
colored = False
for _ in range(n):
	pixels = input()
	if not colored and set(pixels) & set('CMY'):
		colored = True
print('#Color' if colored else '#Black&White')


(r, c) = map(int, input().split())
l = []
for i in range(r):
	l.append(list(input().split()))
flag = 0
for i in range(r):
	for j in range(c):
		if l[i][j] != 'B' and l[i][j] != 'W' and (l[i][j] != 'G'):
			flag = 1
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


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


(n, m) = map(int, input().split())
q = '#Black&White'
colors = 'CMY'
a = [list(input().split()) for i in range(n)]
for i in range(n):
	for j in range(m):
		if a[i][j] in colors:
			q = '#Color'
print(q)


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):
		if x:
			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)
rows = map(lambda row: set(row), mat)
total = set()
for r in rows:
	total.update(r)
total -= set(['B', 'W', 'G'])
out = len(total)
print('#Black&White' if out == 0 else '#Color')


import sys
(n, m) = map(int, input().split())
arr = []
for i in range(n):
	arr = list(input().split())
	for color in arr:
		if color == 'Y' or color == 'M' or color == 'C':
			x = '#Color'
			print(x)
			sys.exit()
		else:
			x = '#Black&White'
			continue
print(x)


def q0():
	s = set()
	s.add('W')
	s.add('G')
	s.add('B')
	(n, m) = list(map(lambda s: int(s), input().split(' ')))
	res = None
	flag = False
	for i in range(n):
		c = list(input().split())
		for elm in c:
			if elm not in s:
				res = '#Color'
				flag = True
	if not flag:
		res = '#Black&White'
	return res
print(q0())


(n, m) = map(int, input().split())
a = [[''] * 100] * 100
ans = 0
for i in range(n):
	a[i] = list(map(str, input().split()))
	for j in range(m):
		if a[i][j] in 'CYM':
			ans = 1
print('#Color' if ans == 1 else '#Black&White')


colour = 'CMY'
BW = True
(a, b) = map(int, input().split())
for _ in range(a):
	s = input().split()
	if BW == True:
		for i in s:
			if i in colour:
				BW = False
				break
print('#Color' if BW == False else '#Black&White')


bw = True
(n, m) = map(int, input().split())
for i in range(n):
	l = input().split()
	if bw:
		for i in l:
			if i in 'CMY':
				bw = False
if bw:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
checkedlst = ['B', 'W', 'G']
flag = True
lst = []
for j in range(n):
	x = input().split()
	lst.append(x)
for i in lst:
	for j in i:
		if j not in checkedlst:
			flag = False
		else:
			continue
if flag == True:
	print('#Black&White')
else:
	print('#Color')


(n, m) = input().split()
(n, m) = (int(n), int(m))
a = []
w = []
for i in range(n):
	a.append(list(map(str, input().split())))
for i in a:
	for j in i:
		w.append(j)
if 'Y' not in w and 'C' not in w and ('M' not in w):
	print('#Black&White')
else:
	print('#Color')


def list_inp(list, n):
	for i in range(0, n):
		tmp = input().split()
		list.append(tmp)
(n, m) = map(int, input().split())
lst = []
list_inp(lst, n)
answer = '#Black&White'
for i in range(0, n):
	for x in range(0, m):
		if lst[i][x] == 'Y' or lst[i][x] == 'C' or lst[i][x] == 'M':
			answer = '#Color'
print(answer)


(x, y) = map(int, input().split())
n = 0
for i in range(x):
	z = input().split()
	for j in range(len(z)):
		if z[j] != 'B' and z[j] != 'W' and (z[j] != 'G'):
			n += 1
if n > 0:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, m) = map(int, input().split(' '))
matrix = [[0] * m] * n
for r in range(n):
	matrix[r] = input().split(' ')
for x in matrix:
	if 'C' in x or 'Y' in x or 'M' in x:
		print('#Color')
		sys.exit()
print('#Black&White')


from math import sqrt
(n, m) = map(int, input().split())
r = '#Black&White'
for _ in range(n):
	row = input().split()
	if 'C' in row or 'Y' in row or 'M' in row:
		r = '#Color'
print(r)


(n, m) = map(int, input().split())
f = 0
for i in range(n):
	a = list(map(str, input().split()))
	for j in range(m):
		if a[j] != 'W' and a[j] != 'B' and (a[j] != 'G'):
			f = 1
			break
	if f == 1:
		break
if f == 1:
	print('#Color')
else:
	print('#Black&White')


import sys
input = sys.stdin.readline
import math

def inpit():
	return int(input())

def inplt():
	return list(map(str, input().split()))

def inpstr():
	s = input()
	return list(s[:len(s) - 1])

def inpspit():
	return map(int, input().split())
import math

def lcm(a):
	return abs(math.prod(a)) // math.gcd(*a)
(n, m) = inpspit()
lt = []
c = ['C', 'M', 'Y']
for i in range(n):
	lt.append(inplt())
for i in range(n):
	for j in range(m):
		if lt[i][j] in c:
			print('#Color')
			exit()
print('#Black&White')


(n, _) = map(int, input().split())
Col = []
for i in range(n):
	Col += list(input().split())
Col = set(Col)
if 'C' in Col or 'M' in Col or 'Y' in Col:
	print('#Color')
else:
	print('#Black&White')


c = input()
n = c[:c.find(' ')]
l = ''
for i in range(int(n)):
	l += input()
if 'C' in l or 'M' in l or 'Y' in l:
	print('#Color')
else:
	print('#Black&White')


(row, column) = [int(x) for x in input().split(' ')]

def isColored(rowValue):
	for x in rowValue:
		if x == 'C':
			return True
		elif x == 'Y':
			return True
		elif x == 'M':
			return True
	return False
rowValue = []
for i in range(0, row):
	rowValue.append(input().split(' '))
for val in rowValue:
	if isColored(val):
		print('#Color')
		exit(0)
print('#Black&White')


def main():
	(n, m) = [int(x) for x in input().split()]
	colors = []
	for i in range(n):
		col = [x for x in input().split()]
		colors += col
	if 'C' not in colors and 'M' not in colors and ('Y' not in colors):
		print('#Black&White')
	else:
		print('#Color')
main()


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


(n, m) = map(int, input().split())
arr = ''
for i in range(n):
	arr += input()
arr = arr.replace(' ', '')
print('#Color' if any((x in arr for x in 'CMY')) else '#Black&White')


data = input()
data = data.split()
(r, c) = [int(x) for x in data]
data = [[0] * c] * r
color = False
for i in range(r):
	local = input()
	local = local.split()
	data[i] = local
	for i in data[i]:
		if i != 'B' and i != 'W' and (i != 'G'):
			color = True
			break
if color:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
k = ['G', 'B', 'W']
for i in range(a):
	x = list(map(str, input().split()))
	for j in x:
		if j not in k:
			print('#Color')
			exit()
print('#Black&White')


def cal(s):
	for i in s:
		if i not in 'WBG ':
			return True
	return False
(n, m) = map(int, input().split())
for i in range(n):
	if cal(input()):
		print('#Color')
		exit()
print('#Black&White')


(r, c) = map(int, input().split())
pixels = []
for i in range(r):
	pixels.extend([list(input().split())])
flag = False
for pixel in pixels:
	for color in pixel:
		if color == 'C' or color == 'M' or color == 'Y':
			flag = True
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


s = input().split()
x = []
for i in range(int(s[0])):
	if int(s[1]) != 1:
		x = x + input().split()
	else:
		x = x + list(input())
if 'C' in x or 'M' in x or 'Y' in x:
	print('#Color')
else:
	print('#Black&White')


l1 = [int(i) for i in input().split(' ')]
t = 0
for i in range(l1[0]):
	l2 = [i for i in input().split(' ')]
	if 'C' in l2 or 'M' in l2 or 'Y' in l2:
		t = 1
if t == 1:
	print('#Color')
else:
	print('#Black&White')


nm = list(map(int, input().split()))
matrix = []
accept = 0
for i in range(nm[0]):
	matrix.append(list(map(str, input().split())))
	for j in range(nm[1]):
		if matrix[i][j] == 'C' or matrix[i][j] == 'M' or matrix[i][j] == 'Y':
			accept = 1
			break
if accept == 1:
	print('#Color')
else:
	print('#Black&White')


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


(r, c) = map(int, input().split())
c = 0
while r > 0:
	r = r - 1
	if any((i in 'CYM' for i in input().split())) == True:
		c = 1
		print('#Color')
		break
if c == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
ans = None
color = ['C', 'M', 'Y']
for i in range(n):
	a = list(map(str, input().split()))
	for i in a:
		if i in color:
			ans = '#Color'
if ans != '#Color':
	ans = '#Black&White'
print(ans)


(n, m) = map(int, input().split())
for _ in range(n):
	c = input().split()
	if c.count('W') + c.count('B') + c.count('G') != len(c):
		print('#Color')
		break
else:
	print('#Black&White')


def solve(n, m, p):
	for i in range(n):
		for j in range(m):
			if p[i][j] in 'CMY':
				return '#Color'
	return '#Black&White'

def main():
	(n, m) = list(map(int, input().split()))
	p = [input().split() for _ in range(n)]
	print(solve(n, m, p))
main()


(n, m) = list(map(int, input().split()))
c = 0
for a in range(n):
	l = list(input().split())
	if l.count('C') > 0 or l.count('M') > 0 or l.count('Y') > 0:
		print('#Color')
		c = 1
		break
if c == 0:
	print('#Black&White')


(n, m) = [int(x) for x in input().split(' ')]
mat = []
for i in range(n):
	l = [x for x in input().split(' ')]
	mat.append(l)
	c = 0
for i in range(n):
	for j in range(m):
		if mat[i][j] == 'W' or mat[i][j] == 'B' or mat[i][j] == 'G':
			c += 1
if c == m * n:
	print('#Black&White')
else:
	print('#Color')


size = input()
rows = int(size.split()[0])
state = '#Black&White'
for i in range(rows):
	s = input().split()
	for item in s:
		if item != 'B' and item != 'W' and (item != 'G'):
			state = '#Color'
print(state)


(n, m) = input().split(' ')
(n, m) = (int(n), int(m))
A = []
prm = False
for i in range(n):
	s = input().split(' ')
	A += s
A = set(A)
for i in ['C', 'M', 'Y']:
	if i in A:
		prm = True
		break
if prm:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
count = 0
for i in range(n):
	row = list(input().split())
	count += row.count('C') + row.count('M') + row.count('Y')
if count > 0:
	print('#Color')
else:
	print('#Black&White')


import itertools
(n, m) = map(int, input().split())
p = [list(map(str, input().split())) for _ in range(n)]
for (i, j) in itertools.product(range(n), range(m)):
	if p[i][j] == 'C' or p[i][j] == 'M' or p[i][j] == 'Y':
		print('#Color')
		break
	elif i == n - 1 and j == m - 1:
		print('#Black&White')


(n, m) = [int(x) for x in input().split()]
t = False
for i in range(n):
	a = [x for x in input().split()]
	for j in range(m):
		if a[j] not in ['W', 'G', 'B']:
			t = True
	if t:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
p = 0
q = 0
for i in range(n):
	a.append([j for j in input().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':
			p += 1
		else:
			continue
if p > 0:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
c = []
n = 0
for i in range(a):
	c.append(list(input().split()))
for i in range(a):
	for j in range(b):
		if c[i][j] == 'B':
			n += 1
		if c[i][j] == 'W':
			n += 1
		if c[i][j] == 'G':
			n += 1
if n == a * b:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split()]
d = e = f = h = 0
for i in range(n):
	a = list(map(str, input().split()))
	d += a.count('C')
	e += a.count('M')
	f += a.count('Y')
	h += a.count('G')
if d > 0 or e > 0 or f > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
p = 0
for i in range(n):
	l = list(map(str, input().split()))
	if 'C' in l:
		p = 1
	elif 'M' in l:
		p = 1
	elif 'Y' in l:
		p = 1
if p == 1:
	print('#Color')
else:
	print('#Black&White')


(n1, n2) = map(int, input().split())
c = 0
for i in range(n1):
	a = input()
	if 'C' in a or 'M' in a or 'Y' in a:
		c = 1
if c == 1:
	print('#Color')
else:
	print('#Black&White')


def main():
	list1 = []
	(m, n) = map(int, input().split())
	for _ in range(m):
		list1.extend(list(input().split()))
	if 'C' in list1 or 'M' in list1 or 'Y' in list1:
		print('#Color')
	else:
		print('#Black&White')
main()


mas = input().split()
n = int(mas[0])
m = int(mas[1])
i_d = True
for i in range(n):
	if i_d == True:
		mas = input().split()
		for i in range(m):
			if mas[i] == 'W' or mas[i] == 'G' or mas[i] == 'B':
				continue
			else:
				i_d = False
				break
	else:
		break
if i_d == True:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(i) for i in input().split()]
a = []
r = 0
for i in range(n):
	b = [j for j in input().split()]
	a.append(b)
	if 'C' in b or 'M' in b or 'Y' in b:
		r = 1
if r == 1:
	print('#Color')
else:
	print('#Black&White')


l = list(map(int, input().strip().split()))
row = l[0]
col = l[1]
flag = 0
for i in range(row):
	arr = list(map(str, input().strip().split()))
	if 'C' in arr or 'M' in arr or 'Y' in arr:
		print('#Color')
		flag = 1
		break
if flag == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
for i in range(n):
	g = list(input().split())
	if g.count('G') + g.count('B') + g.count('W') != m:
		print('#Color')
		exit()
print('#Black&White')


(a, b) = list(map(int, input().split()))
ch = []
for i in range(a):
	c = list(map(str, input().split()))[:b]
	for i in c:
		if i == 'W' or i == 'G' or i == 'B':
			ch.append(i)
if len(ch) == a * b:
	print('#Black&White')
else:
	print('#Color')


m = input().split()
n = int(m[0])
m = int(m[1])
while n > 0:
	pixels = input().split()
	if 'C' in pixels or 'M' in pixels or 'Y' in pixels:
		print('#Color')
		exit()
	n += -1
print('#Black&White')


(n, m) = map(int, input().split())
l = []
for i in range(n):
	l.append(list(map(str, input().split())))
for x in l:
	for y in x:
		if y == 'C' or y == 'M' or y == 'Y':
			print('#Color')
			exit(0)
print('#Black&White')


(n, m) = [int(i) for i in input().split()]
d = 'CMY'
f = '#Black&White'
a = n * [0]
b = n * [0]
for i in range(n):
	a = input()
	t = 0
	for j in range(3):
		if d[j] in a:
			f = '#Color'
print(f)


a = input().split()
n = int(a[0])
m = int(a[1])
c = []
while n > 0:
	b = input().split()
	c.extend(b)
	n = n - 1
if 'C' in c or 'M' in c or 'Y' in c:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
br = 0
for i in range(0, n):
	ls = input().split()
	if ls.count('C') or ls.count('M') or ls.count('Y'):
		br = 1
if br == 0:
	print('#Black&White')
else:
	print('#Color')


def prin(l, *n):
	for k in n:
		if k in l:
			return True
	return False
(n, m) = map(int, input().split(' '))
t = ''
for k in range(n):
	t += input()
if prin(t, 'C', 'Y', 'M'):
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
f = False
t = ['C', 'M', 'Y']
for i in range(n):
	a = input()
	for s in a:
		if s in t:
			f = True
if f:
	print('#Color')
else:
	print('#Black&White')


def brainPhotos(ar):
	x = ['C', 'Y', 'M']
	for i in x:
		if i in ar:
			return '#Color'
	return '#Black&White'
(n, m) = map(int, input().split())
ar = []
for i in range(n):
	arr = input().split()
	ar += arr
print(brainPhotos(ar))


def solve():
	for i in range(int(input().split()[0])):
		if not set(input().split()) <= set(['W', 'B', 'G']):
			print('#Color')
			return
	print('#Black&White')
solve()


try:
	(a, b) = list(map(int, input().split()))
	s = set(['C', 'M', 'Y'])
	for i in range(a):
		row = list(input().split())
		for ele in row:
			if ele in s:
				print('#Color')
				exit(0)
	print('#Black&White')
except:
	pass


s = input()
l = s.split()
n = int(l[0])
m = int(l[1])
bw = ['B', 'W', 'G']
f = 0
for i in range(n):
	s = input()
	for j in s:
		if j != ' ' and j not in bw:
			f = 1
			break
if f == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	a.append(input().split())
find = False
for i in range(n):
	for j in range(m):
		if a[i][j] in 'CMY':
			print('#Color')
			find = True
			break
	if find:
		break
else:
	print('#Black&White')


(m, n) = [int(x) for x in input().split()]
colors = ['C', 'M', 'Y']
for _ in range(m):
	cells = input().split()
	for i in cells:
		if i in colors:
			print('#Color')
			exit()
print('#Black&White')


from sys import stdin, stdout
from re import search

def main():
	stdout.write('#Color\n' if search('C|M|Y', stdin.read()) else '#Black&White\n')
main()


(n, m) = map(int, input().split())
found = False
for _ in range(n):
	a = ''.join(input().split())
	if not found:
		if a.find('C') >= 0 or a.find('M') >= 0 or a.find('Y') >= 0:
			found = True
print('#Color' if found else '#Black&White')


line = input().split()
n = int(line[0])
m = int(line[1])
cnt = 0
for i in range(n):
	s = input().split()
	if 'C' in s or 'M' in s or 'Y' in s:
		cnt = cnt
	else:
		cnt = cnt + 1
if cnt == n:
	print('#Black&White')
else:
	print('#Color')


m = input().split()
color = '#Black&White'
for i in range(0, int(m[0])):
	a = input().split()
	for k in range(0, int(m[1])):
		if 'C' == a[k] or 'M' == a[k] or 'Y' == a[k]:
			color = '#Color'
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) = map(int, input().split())
ans = '#Black&White'
for _ in range(n):
	row = list(input().split())
	if 'C' in row or 'M' in row or 'Y' in row:
		ans = '#Color'
		break
print(ans)


d = int(input().split()[0])
f = '#Black&White'
for k in range(d):
	k = str(input().split())
	if 'C' in k or 'M' in k or 'Y' in k:
		f = '#Color'
print(f)


a = list(map(int, input().split()))
i = 0
b = ''
while i < a[0]:
	b = b + input()
	i += 1
if 'C' in b:
	print('#Color')
elif 'M' in b:
	print('#Color')
elif 'Y' in b:
	print('#Color')
else:
	print('#Black&White')


(n, m) = tuple(map(int, input().split()))
bw = True
for _ in range(n):
	row = input().rsplit()
	for c in row:
		if c == 'C' or c == 'Y' or c == 'M':
			bw = False
			break
if bw:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(s) for s in input().split()]
f = False
for i in range(n):
	a = set(input().split())
	if len(a.intersection({'C', 'M', 'Y'})) > 0:
		f = True
		break
if f:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
x = 0
a = ''
for i in range(n):
	a = a + input()
if 'C' in a or 'M' in a or 'Y' in a:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
answer = '#Black&White'
for _ in range(n):
	current = [x for x in input().split()]
	if 'C' in current or 'M' in current or 'Y' in current:
		answer = '#Color'
		break
print(answer)


(n, m) = map(int, input().split())
result = '#Black&White'
for _ in range(n):
	colors = input().split()
	for color in colors:
		if color in 'CMY':
			result = '#Color'
			break
print(result)


(n, m) = map(int, input().split())
bw = 1
for i in range(n):
	inp = list(map(str, input().split()))
	for ch in inp:
		if ch in ['C', 'M', 'Y']:
			bw = 0
	i += 1
if bw == 1:
	print('#Black&White')
else:
	print('#Color')


(p, s) = map(int, input().split())
c = 0
for i in range(p):
	h = list(map(str, input().split()))
	if 'C' in h or 'M' in h or 'Y' in h:
		c = 1
if c == 1:
	print('#Color')
elif c == 0:
	print('#Black&White')


(n, k) = map(int, input().split())
for _ in range(n):
	s = input()
	if 'C' in s or 'M' in s or 'Y' in s:
		print('#Color')
		exit(0)
print('#Black&White')


import sys
row_column = sys.stdin.readline()
row_num = row_column.rstrip().split(' ')[0]
col_num = row_column.rstrip().split(' ')[1]
for cell in range(0, int(row_num)):
	input = sys.stdin.readline()
	for index in range(0, int(col_num)):
		value = input.rstrip().split(' ')[index]
		if value == 'C' or value == 'M' or value == 'Y':
			print('#Color')
			quit()
print('#Black&White')


def decider(l):
	for i in l:
		if i == 'C' or i == 'M' or i == 'Y':
			return 1
	return 0
(n, m) = map(int, input().split())
f = 0
for i in range(n):
	if f == 1:
		inp = input()
		continue
	p = decider(input().split())
	if p == 1:
		f = 1
if f:
	print('#Color')
else:
	print('#Black&White')


(row, column) = map(int, input().split())
l = []
for _ in range(row):
	main = list(input().split())
	l.append(main)
c = 0
for t in l:
	if 'C' in t or 'Y' in t or 'M' in t:
		c = 1
		break
if c == 1:
	print('#Color')
else:
	print('#Black&White')


aa = input().split(' ')
b = True
for z in range(int(aa[0])):
	b = input()
	if 'C' in b or 'M' in b or 'Y' in b:
		b = False
		break
print('#Black&White') if b else print('#Color')


bnw = ['G', 'B', 'W']
black = 1
(n, k) = map(int, input().split())
for i in range(n):
	x = input().split()
	for i in x:
		if i not in bnw:
			black = 0
			break
	if black == 0:
		break
if black == 1:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split()]
a = []
b = ['C', 'M', 'Y']
count = 0
for i in range(n):
	k = [y for y in input().split()]
	a.append(k)
for i in range(n):
	for j in range(m):
		if a[i][j] in b:
			count += 1
if count > 0:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
isBW = True
for i in range(m):
	colors = [x for x in input().split() if x in 'CMY']
	if len(colors) > 0:
		isBW = False
if isBW:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
(k, k1, k2, k3, k4, k5) = (0, 0, 0, 0, 0, 0)
for i in range(a):
	l = list(input().split())
	k = k + l.count('C')
	k1 = k1 + l.count('M')
	k2 = k2 + l.count('Y')
	k3 = k3 + l.count('W')
	k4 = k4 + l.count('G')
	k5 = k5 + l.count('B')
if k + k1 + k2 == 0:
	print('#Black&White')
elif k + k1 + k2 >= 1:
	print('#Color')


t = [int(i) for i in input().split()]
n = t[0]
m = t[1]
li = []
for i in range(n):
	li1 = [i for i in input().split()]
	if 'Y' in li1 or 'M' in li1 or 'C' in li1:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
colors = []
while n > 0:
	c = map(str, input().split())
	for i in c:
		colors.append(i.upper())
	n -= 1
if 'C' in colors or 'M' in colors or 'Y' in colors:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
(c, bla) = (0, 0)
for _ in range(a):
	k = list(map(str, input().split()))
	for i in range(len(k)):
		if k[i] == 'C' or k[i] == 'M' or k[i] == 'Y':
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


num = str(input(''))
n = num.split(' ')
x = int(n[0])
y = int(n[1])
count = 0
a = ''
for i in range(x):
	c = str(input(''))
	if c.find('C') != -1 or c.find('M') != -1 or c.find('Y') != -1:
		count = 1
		print('#Color')
		break
if count == 0:
	print('#Black&White')


(a, b) = input().strip().split(' ')
(a, b) = [int(a), int(b)]
x = []
for i in range(a):
	c = list(map(str, input().strip().split(' ')))
	for j in c:
		x.append(j)
if 'C' in x or 'M' in x or 'Y' in x:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
flag = 0
for i in range(a):
	s = input().strip()
	for ch in s:
		if ch == 'C' or ch == 'M' or ch == 'Y':
			flag = 1
print('#Color' if flag == 1 else '#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	l = input().split()
	for e in l:
		if 'C' == e or 'M' == e or 'Y' == e:
			print('#Color')
			exit()
print('#Black&White')


(r, c) = map(int, input().split())
m = [input().split() for j in range(r)]
s = {'C', 'M', 'Y'}
c = 0
for i in m:
	for j in i:
		if j in s:
			c += 1
if c > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
BW = ['B', 'G', 'W']
pic = []
for i in range(n):
	pic.append([i for i in input().split()])
b = True
for i in pic:
	for j in i:
		if j not in BW:
			b = False
			break
if b:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().strip().split())
k = 1
for _ in range(n):
	A = list(input().strip().split())
	for i in A:
		if i == 'C' or i == 'M' or i == 'Y':
			k = 0
if k:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
result = False
matrix = [[s for s in input().split()] for i in range(n)]
for row in matrix:
	if 'C' in row or 'M' in row or 'Y' in row:
		result = True
		break
if result:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = ['C', 'M', 'Y']
for i in range(n):
	l = list(input().split())
	for i in l:
		if i in color:
			print('#Color')
			exit(0)
print('#Black&White')


(m, n) = map(int, input().split())
solved = True
for i in range(m):
	p = input().split()
	for e in p:
		if e != 'B' and e != 'W' and (e != 'G'):
			solved = False
			break
print('#Black&White' if solved else '#Color')


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


(n, m) = map(int, input().split())
co = ['C', 'M', 'Y']
bl = ['W', 'G', 'B']
import sys
for i in range(n):
	l = input().split()
	for k in range(m):
		if l[k] in co:
			print('#Color')
			sys.exit()
print('#Black&White')


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


def fun(m, r, c):
	l = ['C', 'M', 'Y']
	f = 1
	for i in range(r):
		for j in range(c):
			if m[i][j] not in l:
				f = 0
			else:
				f = 1
				break
		if f == 1:
			break
	if f == 0:
		return '#Black&White'
	else:
		return '#Color'
(r, c) = map(int, input().split())
M = []
for i in range(r):
	inp = list(input().split())
	M.append(inp)
print(fun(M, r, c))


n = int(input().split()[0])
a = ''.join((input() for _ in range(n)))
print('#Black&White' if sum((a.find(x) for x in 'CMY')) == -3 else '#Color')


x = list(map(int, input().strip().split()))
x1 = x[0]
x2 = x[1]
arr = ['C', 'M', 'Y']
count = 0
for i in range(0, int(x1)):
	y = list(map(str, input().strip().split()))
	for j in range(0, int(x2)):
		if y[j] in arr:
			count += 1
			break
	if count > 0:
		break
if count > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().strip().split()]
flag = 0
for __ in range(n):
	p = input().strip().split()
	if 'C' in p or 'M' in p or 'Y' in p:
		flag = 1
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = '#Black&White'
(li, l2) = ([], [])
for _ in range(n):
	a = list(input().split())
	for i in set(a):
		if i in 'CMY':
			color = '#Color'
print(color)


import sys
(n, m) = sys.stdin.readline().split()
n = int(n)
m = int(m)
photo = []
for i in range(n):
	temp = sys.stdin.readline().split()
	photo.append(temp)
bandera = 0
for i in range(n):
	for j in range(m):
		if photo[i][j] != 'B' and photo[i][j] != 'W' and (photo[i][j] != 'G'):
			bandera = 1
if bandera == 0:
	print('#Black&White')
else:
	print('#Color')


a = [int(x) for x in input().split()]
b = []
for x in range(0, a[0]):
	b.append([x for x in input().split()])
if all([b[i][j] == 'W' or b[i][j] == 'B' or b[i][j] == 'G' for i in range(0, a[0]) for j in range(0, a[1])]):
	print('#Black&White')
else:
	print('#Color')


(a, b) = list(map(int, input().split()))
t = ['W', 'B', 'G']
p = 0
for k in range(a):
	u = list(input().split())
	r = list(set(u))
	for w in r:
		if w not in t:
			print('#Color')
			p += 1
			break
	if p > 0:
		break
if p == 0:
	print('#Black&White')


(row, col) = input().split()
row = int(row)
col = int(col)
arr = []
for i in range(row):
	arr.append(input().split())

def brains(arr, row, col):
	for i in range(row):
		for j in range(col):
			if arr[i][j] == 'C' or arr[i][j] == 'M' or arr[i][j] == 'Y':
				print('#Color')
				return
	print('#Black&White')
	return
brains(arr, row, col)


CMY = ['C', 'M', 'Y']
for _ in range(int(input().split()[0])):
	colors = input().split()
	if any((x in colors for x in CMY)):
		print('#Color')
		exit()
print('#Black&White')


(a, b) = map(int, input().split())
f = 0
for i in range(a):
	x = input()
	for j in x:
		if j in 'CMY':
			print('#Color')
			f = 1
			break
	if f == 1:
		break
if f == 0:
	print('#Black&White')


(n, m) = map(int, input().split())
flag = 0
for _ in range(n):
	l = [x for x in input().split()]
	for j in l:
		if j in 'CMY':
			flag = 1
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
b = []
for i in range(a):
	b.append(input())
for j in b:
	if j.count('C') > 0 or j.count('M') or j.count('Y'):
		print('#Color')
		break
else:
	print('#Black&White')


import sys
for i in sys.stdin:
	color = str(i).count('M')
	color += str(i).count('C')
	color += str(i).count('Y')
	if color != 0:
		print('#Color')
		exit(0)
print('#Black&White')


args = [int(arg) for arg in input().strip().split(' ')]
n = args[0]
(stop, ans) = (False, '#Black&White')
for _ in range(n):
	line = input()
	for c in line:
		if c == 'C' or c == 'M' or c == 'Y':
			ans = '#Color'
			stop = True
			break
	if stop:
		break
print(ans)


(n, m) = map(int, input().split())
s = ''
for _ in range(n):
	s += ''.join(map(str, input().split()))
if 'Y' in s or 'C' in s or 'M' in s:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
lst = []
for _ in range(n):
	c = input().split()
	lst = lst + c
if 'C' in lst:
	print('#Color')
elif 'M' in lst:
	print('#Color')
elif 'Y' in lst:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
lis = []
flag = 0
for _ in range(n):
	lis1 = input().split()
	for i in lis1:
		lis.append(i)
if 'C' in lis:
	flag = 1
elif 'Y' in lis:
	flag = 1
elif 'M' in lis:
	flag = 1
if flag == 1:
	print('#Color')
else:
	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, k) = input().split()
n = int(n)
while n:
	for i in input():
		if i in 'CMY':
			print('#Color')
			exit()
	n -= 1
else:
	print('#Black&White')


(n, m) = map(int, input().split())
l = []
c = 0
for i in range(n):
	s = [str(x) for x in input().split()]
	l.append(s)
for i in l:
	for j in range(len(i)):
		if i[j] == 'C' or i[j] == 'M' or i[j] == 'Y':
			c = 1
if c == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
s = set()
for i in range(n):
	l = list(input().split())
	l = set(l)
	s.update(l)
t = {'B', 'W', 'G'}
if s.difference(t) == set():
	print('#Black&White')
else:
	print('#Color')


t = 1
while t > 0:
	t -= 1
	(a, b) = map(int, input().split())
	flag = 0
	for i in range(a):
		l = list(map(str, input().split()))
		for i in l:
			if i == 'C' or i == 'M' or i == 'Y':
				flag = 1
	if flag:
		print('#Color')
	else:
		print('#Black&White')


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


L = list(map(int, input().split()))
ist = False
for _ in range(L[0]):
	tmp = input().split()
	for i in range(len(tmp)):
		if tmp[i] == 'C' or tmp[i] == 'M' or tmp[i] == 'Y':
			ist = True
			break
print('#Color') if ist else print('#Black&White')


import re
(n, m) = [int(x) for x in input().split()]
for i in range(n):
	if re.search('[CMY]', input()):
		print('#Color')
		exit()
print('#Black&White')


(n, m) = [int(x) for x in input().split()]
isBW = True
cols = ['C', 'M', 'Y']
for i in range(n):
	row = input()
	for col in cols:
		if col in row:
			isBW = False
if isBW:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
x = []
u = ['G', 'W', 'B']
for _ in range(n):
	l = list(input().split())
	x.extend(l)
x = list(set(x))
c = 0
for i in range(len(x)):
	if x[i] in u:
		c = c + 1
	else:
		c = 0
		break
if c > 0 and c <= 3:
	print('#Black&White')
else:
	print('#Color')


line1 = input().split()
n = int(line1[0])
m = int(line1[1])
flag = 1
for i in range(n):
	line2 = input().split()
	for j in line2:
		if j != 'W' and j != 'B' and (j != 'G'):
			flag = 0
if flag:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
color = ['M', 'Y', 'C']
c = 0
for i in range(0, n):
	line = list(map(str, input().split()))
	for j in line:
		if j in color:
			print('#Color')
			c = 1
			break
	if c == 1:
		break
if c == 0:
	print('#Black&White')


(n, m) = [int(a) for a in input().split()]
color = '#Black&White'
for x in range(n):
	rowOfPixels = input().split()
	if 'C' in rowOfPixels or 'M' in rowOfPixels or 'Y' in rowOfPixels:
		color = '#Color'
print(color)


s = input()
a = s.split()
b = []
c = ['W', 'B', 'G']
for i in range(len(a)):
	a[i] = int(a[i])
for i in range(a[0]):
	s = input()
	b += s.split()
sum = 0
for i in range(len(b)):
	if b[i] in c:
		sum += 1
if sum == len(b):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
a = [input().split() for i in range(n)]
color_foto = '#Black&White'
for i in a:
	for j in i:
		while j == 'C' or j == 'M' or j == 'Y':
			color_foto = '#Color'
			break
print(color_foto)


(n, m) = map(int, input().split())
A = []
for i in range(n):
	row = input().split()
	for i in range(len(row)):
		row[i] = str(row[i])
	A.append(row)
c = 0
M = 0
y = 0
w = 0
g = 0
b = 0
for i in range(n):
	for j in range(m):
		if A[i][j] == 'C':
			c += 1
		elif A[i][j] == 'M':
			M += 1
		elif A[i][j] == 'Y':
			y += 1
		elif A[i][j] == 'W':
			w += 1
		elif A[i][j] == 'G':
			g += 1
		elif A[i][j] == 'B':
			b += 1
if c == 0 and M == 0 and (y == 0):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
color = []
s = ''
for i in range(n):
	color.append(input().split())
for i in color:
	for j in i:
		s = s + j
if 'Y' in s:
	print('#Color')
elif 'C' in s:
	print('#Color')
elif 'M' in s:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
photo = []
for i in range(n):
	photo.append(input().split())
color = 'CMY'
param = False
for i in photo:
	for j in i:
		if j in color:
			param = True
print('#Color' if param else '#Black&White')


inf = list(map(int, input().split()))
f = 1
dis = ['C', 'M', 'Y']
for i in range(inf[0]):
	s = input()
	for c in s:
		if c in dis:
			f = 0
			break
if f:
	print('#Black&White')
else:
	print('#Color')


color = ['C', 'M', 'Y']
BW = ['W', 'G', 'B']
message = ['#Black&White', '#Color']
status = message[0]
ord: str = input()
(row, column) = ord.split(' ')
row = int(row)
while row > 0:
	f = input()
	for i in f:
		if i in color:
			status = message[1]
	row = row - 1
print(status)


m = int(input().split(' ')[0])
bw = True
for i in range(m):
	ln = input().split(' ')
	if 'C' in ln or 'M' in ln or 'Y' in ln:
		bw = False
print('#Black&White') if bw else print('#Color')


import math, sys
input = sys.stdin.readline

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return list(map(int, input().split()))
nm = invr()
n = nm[0]
for i in range(n):
	l = insr()
	if 'C' in l or 'M' in l or 'Y' in l:
		print('#Color')
		sys.exit()
print('#Black&White')


(n, m) = map(int, input().split())
bw = True
for _ in range(n):
	for c in input().split():
		if c not in {'B', 'W', 'G'}:
			bw = False
if bw:
	print('#Black&White')
else:
	print('#Color')


(a, b) = map(int, input().split())
c = 0
m = 0
y = 0
for i in range(a):
	l = list(map(str, input().split()))
	c += l.count('C')
	m += l.count('M')
	y += l.count('Y')
if c != 0 or m != 0 or y != 0:
	print('#Color')
else:
	print('#Black&White')


import time
(n, m) = (int(i) for i in input().split())
flag = True
for i in range(n):
	now = input()
	if flag:
		if 'Y' in now or 'M' in now or 'C' in now:
			flag = False
start = time.time()
if flag:
	print('#Black&White')
else:
	print('#Color')
finish = time.time()


def check():
	(n, m) = [int(x) for x in input().split(' ')]
	bw = ['C', 'M', 'Y']
	for i in range(n):
		for i in input():
			if i in bw:
				return '#Color'
	return '#Black&White'
print(check())


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


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue
from decimal import *

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def divisor(n):
		res = []
		i = 1
		for i in range(1, int(n ** 0.5) + 1):
			if n % i == 0:
				res.append(i)
				if i != n // i:
					res.append(n // i)
		return res

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

class PriorityQueue:

	def __init__(self, l=[]):
		self.q = l
		heapq.heapify(self.q)
		return

	def push(self, n):
		heapq.heappush(self.q, n)
		return

	def pop(self):
		return heapq.heappop(self.q)

def pop_count(x):
	x = x - (x >> 1 & 6148914691236517205)
	x = (x & 3689348814741910323) + (x >> 2 & 3689348814741910323)
	x = x + (x >> 4) & 1085102592571150095
	x = x + (x >> 8)
	x = x + (x >> 16)
	x = x + (x >> 32)
	return x & 127
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def main():
	(N, M) = Scanner.map_int()
	C = [s.split(' ') for s in Scanner.string_list(N)]
	out = '#Black&White'
	for cl in C:
		for c in cl:
			if c in ['C', 'M', 'Y']:
				out = '#Color'
	print(out)
main()


(n, m) = map(int, input().split())
bwg = 0
c = 0
f = 0
for _ in range(n):
	pix = list(map(str, input().split(' ')))
	bwg += pix.count('B') + pix.count('W') + pix.count('G')
c = n * m - bwg
if not c:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
matrix = [input().split() for _ in range(n)]
ans = '#Black&White'
for i in range(n):
	for j in range(m):
		if matrix[i][j] not in ['B', 'W', 'G']:
			ans = '#Color'
print(ans)


from sys import stdin
c = [x.rstrip().split() for x in stdin.readlines()][1:]
s = set()
for x in c:
	for y in x:
		s.add(y)
print(('#Color', '#Black&White')[all((x not in 'CMY' for x in s))])


(n, m) = map(int, input().split())
l = []
for i in range(n):
	d = input().split()
	l.append(d)
t = True
for i in range(n):
	for j in range(m):
		if l[i][j] == 'C' or l[i][j] == 'M' or l[i][j] == 'Y':
			t = False
			break
if t:
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split()]
flag = False
for i in range(n):
	x = input().split()
	if x.count('B') + x.count('W') + x.count('G') != len(x):
		flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


(dim_y, dim_x) = [int(i) for i in input().split(' ')]
b_and_w = True
for i in range(dim_y):
	row = input().split(' ')
	for c in row:
		if c in ['C', 'M', 'Y']:
			b_and_w = False
			break
	if not b_and_w:
		break
if b_and_w:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
for line in (input() for x in range(n)):
	for c in 'CMY':
		if c in line:
			print('#Color')
			exit(0)
print('#Black&White')


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


rc = input().split()
r = int(rc[0])
c = int(rc[1])
matrix = []
for i in range(r):
	a = input().split()
	b = []
	for j in range(c):
		b.append(a[j])
	matrix.append(b)
cnt = 0
for i in range(r):
	for j in range(c):
		if matrix[i][j] != 'B' and matrix[i][j] != 'W' and (matrix[i][j] != 'G'):
			cnt = 1
			break
	if cnt == 1:
		break
if cnt == 0:
	print('#Black&White')
elif cnt == 1:
	print('#Color')


(r, c) = map(int, input().split())
mat = []
for _ in range(r):
	x = input().split()
	mat.append(x)
flag = 0
for i in range(r):
	for j in range(c):
		if mat[i][j] == 'C' or mat[i][j] == 'M' or mat[i][j] == 'Y':
			print('#Color')
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


(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) = map(int, input().split())
s = ''
for i in range(n):
	s += ''.join(list(input().split()))
print(['#Color', '#Black&White'][s.count('W') + s.count('B') + s.count('G') == len(s)])


(a, b) = input().split()
a = int(a)
b = int(b)
flag = 1
for i in range(a):
	list1 = input().split()
	if 'C' in list1 or 'M' in list1 or 'Y' in list1:
		flag = 0
		break
if flag == 0:
	print('#Color')
else:
	print('#Black&White')


n = int(input().split()[0])
flag = False
for i in range(n):
	a = input().split()
	for b in a:
		if b in ['C', 'M', 'Y']:
			print('#Color')
			flag = True
			break
		if flag:
			break
	if flag:
		break
if not flag:
	print('#Black&White')


string = input()
numbers = string.split(' ')
m = int(numbers[0])
results = '#Black&White'
for x in range(m):
	string = input()
	if results == '#Black&White':
		colors = string.split(' ')
		for y in colors:
			if not y == 'W' and (not y == 'G') and (not y == 'B'):
				results = '#Color'
				break
print(results)


(a, b) = map(int, input().split())
for i in range(a):
	t = list(input().split())
	flag = 0
	for j in range(b):
		if t[j] != 'B' and t[j] != 'W' and (t[j] != 'G'):
			print('#Color')
			flag = 1
			break
	if flag == 1:
		break
if flag == 0:
	print('#Black&White')


(r, c) = map(int, input().split())
flag = 0
for i in range(0, r):
	l = list(input().split())
	if 'C' in l or 'M' in l or 'Y' in l:
		flag += 1
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


__author__ = 'artyom'

def main():
	(n, m) = read(3)
	for _ in range(n):
		for x in read(2):
			if x == 'C' or x == 'M' or x == 'Y':
				return '#Color'
	return '#Black&White'

def read(mode=1, size=None):
	if mode == 0:
		return input().strip()
	if mode == 1:
		return int(input().strip())
	if mode == 2:
		return input().strip().split()
	if mode == 3:
		return list(map(int, input().strip().split()))
	a = []
	for _ in range(size):
		a.append(read(3))
	return a

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, tuple) or isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s, end='\n')
res = main()
write(res)


(x, y) = map(int, input().split())
l = []
flag = 0
for i in range(0, x):
	l.append(input().split())
for j in l:
	if 'C' in j or 'M' in j or 'Y' in j:
		flag = 1
	else:
		pass
if flag == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = input().split()
res = ''
i = 0
while i < int(n):
	for u in input().split():
		if u != 'C' and u != 'M' and (u != 'Y'):
			res = '#Black&White'
		else:
			res = '#Color'
			i = int(n)
			break
	i += 1
print(res)


(n, m) = list(map(int, input().split(' ')))
photo_color_matrix = {'C': 0, 'M': 0, 'Y': 0, 'W': 0, 'G': 0, 'B': 0}
while n:
	n -= 1
	pixels = list(input().split(' '))
	m = len(pixels)
	counter = 0
	while m:
		m -= 1
		photo_color_matrix[pixels[counter]] += 1
		counter += 1
if photo_color_matrix['C'] > 0 or photo_color_matrix['M'] > 0 or photo_color_matrix['Y'] > 0:
	print('#Color')
else:
	print('#Black&White')


lst = []
(a, b) = list(map(int, input().split()))
for i in range(a):
	lst.append(input().split())
a = []
for i in lst:
	for j in i:
		if j == 'C' or j == 'Y' or j == 'M':
			a.append('#Color')
else:
	a.append('#Black&White')
if '#Color' in a:
	print('#Color')
else:
	print('#Black&White')


a = [int(i) for i in input().split(' ')]
k = 0
n = a[0]
m = a[1]
for i in range(n):
	b = [str(m) for m in input().split(' ')]
	if b.count('C') > 0 or b.count('M') > 0 or b.count('Y') > 0:
		k = k + 1
if k == 0:
	print('#Black&White')
else:
	print('#Color')


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()


(rows, cols) = map(int, input().split())
image = list()
for i in range(rows):
	pixels = input().split()
	for i in range(cols):
		image.append(pixels[i])
if 'C' in image or 'M' in image or 'Y' in image:
	print('#Color')
else:
	print('#Black&White')


n = [int(x) for x in input().split()]
data = []
while n[0] > 0:
	data = sorted(list(set(input().split() + data)))
	n[0] -= 1
if data == ['B', 'G', 'W'] or data == ['B', 'G'] or data == ['G', 'W'] or (data == ['B', 'W']) or (data == ['B']) or (data == ['G']) or (data == ['W']):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l1 = []
for i in range(n):
	l = list(input().split())
	for j in range(m):
		l1.append(l[j])
l1 = set(l1)
l1 = list(l1)
c = 0
for i in range(len(l1)):
	if l1[i] == 'G' or l1[i] == 'W' or l1[i] == 'B':
		c = 1
	else:
		c = 0
		break
if c == 1:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l = []
ls = []
s = ['B', 'W', 'G']
for i in range(n):
	l.extend(input().split())
for i in l:
	ls.append(i in s)
print(['#Color', '#Black&White'][all(ls)])


import sys, re
ls = [l.rstrip() for l in sys.stdin.readlines()]
(n, m) = map(int, ls[0].split(' '))
res = re.findall('\\w', ' '.join(ls[1:]))
if len({'C', 'M', 'Y'}.intersection(res)) > 0:
	print('#Color')
else:
	print('#Black&White')


def main():
	(n, m) = map(int, input().split())
	for i in range(n):
		a = list(input().split())
		for x in a:
			if x != 'B' and x != 'W' and (x != 'G'):
				print('#Color')
				exit()
	print('#Black&White')
main()


n = list(map(int, input().split()))
w = 0
for i in range(n[0]):
	n1 = input().split()
	s = n1[:n[1]]
	if 'C' in s or 'M' in s or 'Y' in s:
		w = w + 1
if w > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
l = n * [[]]
for i in range(n):
	l[i] = input().split()
l2 = []
for i in range(n):
	s = list(set(l[i]))
	for j in range(len(s)):
		l2.append(s[j])
l2 = list(set(l2))
if l2.count('W') + l2.count('B') + l2.count('G') == len(l2):
	print('#Black&White')
else:
	print('#Color')


(n, t) = map(int, input().split())
l = [input() for i in range(n)]
for x in l:
	if 'C' in x or 'M' in x or 'Y' in x:
		print('#Color')
		break
else:
	print('#Black&White')


eh = input().split()
dk = int(eh[0])
bw = True
for i in range(dk):
	n = input()
	if n.count('C') > 0 or n.count('M') > 0 or n.count('Y') > 0:
		bw = False
		break
if bw:
	print('#Black&White')
else:
	print('#Color')


inp = input().strip().split(' ')
(n, m) = (int(inp[0]), int(inp[1]))
flag = 0
for i in range(n):
	inp = input().strip().split(' ')
	if flag == 0:
		for x in inp:
			if x == 'C' or x == 'M' or x == 'Y':
				flag = 1
				break
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


matrix = list(map(int, input().split()))
condition = True
for i in range(matrix[0]):
	y = list(input().split())
	for w in y:
		if not w in 'GWB':
			condition = False
if not condition:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(s) for s in input().split()]
s = ''
for a in range(n):
	s += input()
if s.count('B') + s.count('W') + s.count('G') == m * n:
	print('#Black&White')
else:
	print('#Color')


a = ['C', 'M', 'Y']
_EXE = '#Black&White'
_EXEC = list(map(int, input().split()))
for i in range(_EXEC[0]):
	_0X = list(input().split())
	if _EXE != '#Color':
		for j in range(_EXEC[1]):
			if _0X[j] in a:
				_EXE = '#Color'
				break
print(_EXE)


import sys

def I():
	return list(map(int, input().split()))
(n, m) = I()
for i in range(n):
	x = input()
	if 'C' in x or 'M' in x or 'Y' in x:
		print('#Color')
		sys.exit()
print('#Black&White')


def blackwhiteorcolor(a, z, v):
	(c, m, y, w, g, b) = (0, 0, 0, 0, 0, 0)
	for i in range(a):
		for j in range(z):
			if v[i][j] == 'C':
				c += 1
			elif v[i][j] == 'M':
				m += 1
			elif v[i][j] == 'Y':
				y += 1
			elif v[i][j] == 'W':
				w += 1
			elif v[i][j] == 'G':
				g += 1
			elif v[i][j] == 'B':
				b += 1
	if c + m + y == 0:
		return '#Black&White'
	else:
		return '#Color'
(a, b) = input().strip().split()
v = []
for i in range(int(a)):
	temp = input().strip().split()
	v.append(temp)
print(blackwhiteorcolor(int(a), int(b), v))


a = input().split(' ')
(n, m, l) = (int(a[0]), int(a[1]), [])
for i in range(n):
	value = input().split(' ')
	l.append(value)
flag = 1
for j in l:
	for p in j:
		if p == 'C' or p == 'M' or p == 'Y':
			flag = 0
if flag == 0:
	print('#Color')
else:
	print('#Black&White')


from sys import stdin, stdout
input = lambda : stdin.readline().strip()
ws = lambda : input()
wi = lambda : int(input())
wl = lambda : list(map(int, input().split()))
(n, m) = wl()
nk = 0
for i in range(0, n):
	lst1 = input().split()
	if nk == 0:
		if 'C' in lst1:
			nk = 1
		elif 'M' in lst1:
			nk = 1
		elif 'Y' in lst1:
			nk = 1
if nk == 0:
	stdout.write('#Black&White')
else:
	stdout.write('#Color')


(rows, columns) = list(map(int, input().split()))
ans = False
for i in range(rows):
	pixels = input().split()
	for pixel in pixels:
		if pixel != 'W' and pixel != 'B' and (pixel != 'G'):
			ans = True
if ans:
	print('#Color')
else:
	print('#Black&White')


from sys import exit
(n, m) = map(int, input().split())
for i in range(n):
	for j in input().split():
		if j in 'CMY':
			print('#Color')
			exit()
print('#Black&White')


(m, n) = map(int, input().split())
matrix = []
for i in range(m):
	matrix.append(input().split())
m = ' '.join((str(i) for i in matrix))
if m.count('M') or m.count('Y') or m.count('C'):
	print('#Color')
else:
	print('#Black&White')


a = []
while True:
	try:
		a.append(input())
	except:
		break
s = a[0].split(' ')
n = int(s[0])
m1 = int(s[1])
c = 0
m = 0
y = 0
w = 0
g = 0
b = 0
for i in range(1, n + 1):
	o = a[i].split(' ')
	for j in range(m1):
		if o[j] == 'C':
			c += 1
		elif o[j] == 'M':
			m += 1
		elif o[j] == 'Y':
			y += 1
		elif o[j] == 'W':
			w += 1
		elif o[j] == 'G':
			g += 1
		elif o[j] == 'B':
			b += 1
if c == 0 and m == 0 and (y == 0):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
ans = '#Black&White'
for _ in range(0, n):
	s = list(input().split())
	for c in s:
		if c in 'CMY':
			ans = '#Color'
print(ans)


a = list((int(x) for x in input().split()))
s = set()
for i in range(a[0]):
	b = input().split()
	for i in b:
		s.add(i)
s2 = {'B', 'W', 'G'}
if s.union(s2) == s2:
	print('#Black&White')
else:
	print('#Color')


inp = input()
inp = inp.split()
r = int(inp[0])
c = int(inp[1])
colored = False
for i in range(r):
	arr = input()
	arr = arr.split()
	if 'C' in arr or 'M' in arr or 'Y' in arr:
		colored = True
		break
if colored:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
status = 0
for i in range(m):
	a = input().split()
	for j in range(n):
		if a[j] != 'W' and a[j] != 'B' and (a[j] != 'G'):
			status = 1
print('##BCloalcokr& W h i t e'[status::2])


n = int(input().split()[0])
l = []
for _ in ' ' * n:
	l += input().split()
print(['#Color', '#Black&White'][l.count('B') + l.count('W') + l.count('G') == len(l)])


(r, c) = map(int, input().split())
ph = []
for _ in range(r):
	ph.append(input().split())
f = 0
for i in ph:
	if 'Y' in i or 'C' in i or 'M' in i:
		f = 1
if f == 1:
	print('#Color')
else:
	print('#Black&White')


(a, b) = input().split()
a = int(a)
b = int(b)
black = 1
for i in range(a):
	c = input().split()
	if 'C' in c or 'M' in c or 'Y' in c:
		black = 0
if black == 0:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, m) = map(int, input().split())
for i in range(n):
	A = input().split()
	for elem in A:
		if elem == 'C' or elem == 'M' or elem == 'Y':
			print('#Color')
			sys.exit()
print('#Black&White')


(n, m) = [int(i) for i in input().split()]
i = 1
a = []
colors = ['C', 'M', 'Y', 'W', 'G', 'B']
while i <= n:
	a += list(input().split())
	i += 1
if 'C' in a or 'M' in a or 'Y' in a:
	print('#Color')
else:
	print('#Black&White')


bw = True
r = int(input()[0])
col = ['C', 'Y', 'M']
for i in range(r):
	s = input()
	iscol = lambda x: x in s
	if any(map(iscol, col)):
		bw = False
		break
if bw:
	print('#Black&White')
else:
	print('#Color')


a = input().split(' ')
(list_v, list_h, color) = ([], [], 0)
if int(a[0]) >= 1 and int(a[1]) <= 100:
	for x in range(int(a[0])):
		e = input()
		list_v.append(e)
		list_h.append(list_v[x].split(' '))
		for y in range(int(a[1])):
			if list_h[x][y] in 'CMYWGB':
				if list_h[x][y] in 'CMY':
					color += 1
			else:
				print('Wrong input')
else:
	print('Bye')
if color != 0:
	print('#Color')
else:
	print('#Black&White')


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


ans = '#Black&White'
(n, c) = map(int, input().split(' '))
i = 0
b = 0
color = 'YCM'
while i < n:
	li = input().split(' ')
	if b == 0:
		for j in li:
			if color.find(j) > -1:
				b = 1
				ans = '#Color'
				break
	i += 1
print(ans)


import sys
(m, n) = map(int, input().split())
n = 0
for i in range(m):
	x = input()
	if 'B' in x or 'W' in x or 'G' in x:
		n += 0
	if 'Y' in x or 'C' in x or 'M' in x:
		n += 1
if n != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
color = False
for _ in range(n):
	row = [x for x in input().split()]
	for i in range(m):
		if row[i] == 'C' or row[i] == 'M' or row[i] == 'Y':
			color = True
			break
	if color:
		break
print('#Color' if color else '#Black&White')


import sys
(n, m) = map(int, sys.stdin.readline().split())
for i in range(n):
	a = sys.stdin.readline().split()
	for j in a:
		if j == 'C' or j == 'M' or j == 'Y':
			print('#Color')
			exit()
print('#Black&White')


inputData = list(map(int, input().split()))
lines = []
for i in range(inputData[0]):
	lines.append(input().split())
for line in lines:
	for char in line:
		if char == 'C' or char == 'M' or char == 'Y':
			print('#Color')
			exit()
print('#Black&White')


from typing import List

def parse_input() -> List[List[str]]:
	(n, _) = [int(x) for x in input().split()]
	photo = [input().split() for _ in range(n)]
	return photo

def solve(photo: List[List[str]]) -> str:
	for row in photo:
		for pixel in row:
			if pixel not in 'BWG':
				return '#Color'
	return '#Black&White'
print(solve(parse_input()))


(n, m) = map(int, input().split())
colors = []
for i in range(n):
	line = input()
	if m > 1:
		line_colors = line.split()
		for color in line_colors:
			colors.append(color)
	else:
		colors.append(line)
distinct_colors = set(colors)
if 'C' in distinct_colors or 'M' in distinct_colors or 'Y' in distinct_colors:
	print('#Color')
else:
	print('#Black&White')


def solve(colors):
	for color in colors:
		for i in range(0, len(color)):
			if color[i] == 'C' or color[i] == 'M' or color[i] == 'Y':
				return '#Color'
	return '#Black&White'
(n, m) = list(map(int, input().split()))
colors = []
for _n in range(0, n):
	colors.append(input())
print(solve(colors))


def read_arr(f=int):
	if f:
		return [f(x) for x in input().split()]
	else:
		return [x for x in input().split()]
(n, m) = read_arr()
r = set()
for i in range(n):
	row = set(read_arr(None))
	r |= row
for x in r:
	if x not in set(['B', 'W', 'G']):
		print('#Color')
		break
else:
	print('#Black&White')


import pdb
(a, b) = map(int, input().split())
for i in range(a):
	x = input().split()
	y = ''.join(x)
	if 'C' in y or 'M' in y or 'Y' in y:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
mark = '#Black&White'
for i in range(n):
	chars = list(map(str, input().split()))
	if 'C' in chars or 'M' in chars or 'Y' in chars:
		mark = '#Color'
		break
print(mark)


(n, m) = map(int, input().split())
a = []
k = 0
for i in range(n):
	a.append(list(map(str, input().split())))
for i in range(n):
	for j in range(m):
		if a[i][j] in 'CMY':
			k += 1
if k > 0:
	print('#Color')
else:
	print('#Black&White')


place = [int(a) for a in input().split(' ')]
color = False
for i in range(place[0]):
	arr = [str(n) for n in input().split(' ')]
	if 'C' in arr or 'M' in arr or 'Y' in arr:
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


import sys
(n, m) = map(int, sys.stdin.readline().split())
for _ in range(n):
	alist = sys.stdin.readline().split()
	for a in alist:
		if a == 'C' or a == 'M' or a == 'Y':
			print('#Color')
			break
	else:
		continue
	break
else:
	print('#Black&White')


from sys import stdin, stdout
(n, m) = map(int, stdin.readline().split())
color = []
for i in range(n):
	row = list(stdin.readline().split())
	color.extend(row)
if 'C' in color or 'M' in color or 'Y' in color:
	stdout.write('#Color\n')
	exit()
stdout.write('#Black&White\n')


(a, b) = [int(i) for i in input().split()]
k = 0
for i in range(a):
	l = input().split()
	for i in range(b):
		if l[i] in ['C', 'M', 'Y']:
			k += 1
if k == 0:
	print('#Black&White')
else:
	print('#Color')


(a, b) = input().split()
a = int(a, 10)
b = int(b, 10)
l = 0
s1 = []
for i in range(a):
	s = input().split()
	for j in range(b):
		s1.append(s[j])
for i in range(len(s1)):
	if s1[i] == 'C' or s1[i] == 'Y' or s1[i] == 'M':
		l = 1
		break
if l == 1:
	print('#Color')
else:
	print('#Black&White')


x = False
(n, m) = map(int, input().split())
for _ in range(n):
	row = input().split()
	if not x:
		for i in row:
			if i not in ['B', 'W', 'G']:
				x = True
if x:
	print('#Color')
else:
	print('#Black&White')


def main():
	ans = 0
	s = input()
	s = s.split()
	n = int(s[0])
	m = int(s[1])
	while n:
		x = input()
		for i in x:
			if i == 'C' or i == 'M' or i == 'Y':
				ans = 1
		n -= 1
	if ans:
		print('#Color')
	else:
		print('#Black&White')
main()


def main():
	(n, m) = list(map(int, input().split()))
	pixel = []
	for i in range(n):
		pixel += input().split()
	if 'C' in pixel or 'Y' in pixel or 'M' in pixel:
		print('#Color')
	else:
		print('#Black&White')
main()


print('#Color' if len(set(''.join((input() for _ in range(int(input().split()[0]))))).intersection('CMY')) else '#Black&White')


(n, m) = map(int, input().split())
photo = []
color = 0
for a in range(n):
	spisok = input()
	if 'C' in spisok or 'M' in spisok or 'Y' in spisok:
		color = 1
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
res = '#Black&White'
for i in range(n):
	colors = [i for i in input().split()]
	for c in colors:
		if c == 'C' or c == 'M' or c == 'Y':
			res = '#Color'
print(res)


(n, m) = map(int, input().split())
B = []
for i in range(n):
	A = list(map(str, input().split()))
	B.append(A)
for i in B:
	if 'C' in i or 'Y' in i or 'M' in i:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
sl = ['C', 'M', 'Y']
ans = 0
for i in range(n):
	sll = input()
	for i in sll:
		if i in sl:
			ans += 1
if ans == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
t = 0
k = 0
for i in range(n):
	l = input().split()
	for j in range(m):
		if l[j] in ['W', 'G', 'B']:
			t += 1
	if t == m:
		k += 1
	t = 0
if k == n:
	print('#Black&White')
else:
	print('#Color')


import sys
print('#Color' if set('CYM') & set(sys.stdin.read()) else '#Black&White')


(a, b) = map(int, input().split())
d = ''
p = 0
for i in range(a):
	c = str(input())
	d += c
for w in range(len(d)):
	if d[w] == 'B' or d[w] == 'W' or d[w] == 'G':
		p += 1
if p == a * b:
	print('#Black&White')
else:
	print('#Color')


def colorfind(n, m, r):
	for i in range(n):
		for j in range(m):
			if r[i][j] == 'C' or r[i][j] == 'M' or r[i][j] == 'Y':
				return '#Color'
	return '#Black&White'
(n, m) = map(int, input().split())
r = []
for i in range(n):
	l = input().split()
	r.append(l)
print(colorfind(n, m, r))


def colors(n):
	for _ in range(n):
		test = [i for i in input().split()]
		for e in test:
			if e == 'C' or e == 'M' or e == 'Y':
				return '#Color'
	return '#Black&White'

def main():
	(n, m) = [int(i) for i in input().split()]
	print(colors(n))
main()


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


def main():
	(n, m) = map(int, input().split())
	while n:
		arr = list(map(str, input().split()))
		for i in range(len(arr)):
			if arr[i] != 'B' and arr[i] != 'W' and (arr[i] != 'G'):
				print('#Color')
				return
		n -= 1
	print('#Black&White')
main()


def main():
	(n, m) = map(int, input().split())
	s = '#Black&White'
	b = {'C', 'M', 'Y'}
	for i in range(n):
		if len(b & set(input().split())) > 0:
			s = '#Color'
			break
	print(s)
main()


(r, c) = map(int, input().split())
(b, co) = (0, 0)
y = []
for i in range(r):
	y.append(input())
for x in y:
	if 'C' in x or 'M' in x or 'Y' in x:
		print('#Color')
		exit()
	else:
		continue
print('#Black&White')


(n, m) = map(int, input().split())
ar = []
for i in range(n):
	t = [i for i in input().split()]
	for j in t:
		if j == 'C' or j == 'Y' or j == 'M':
			print('#Color')
			exit()
print('#Black&White')


x = list(map(int, input().split()))
A = []
for k in range(x[0]):
	y = list(map(str, input().split()))
	A.append(y)
bsum = 0
for i in range(x[0]):
	for j in range(x[1]):
		if A[i][j] == 'B' or A[i][j] == 'W' or A[i][j] == 'G':
			bsum += 1
if bsum == x[0] * x[1]:
	print('#Black&White')
else:
	print('#Color')


data = input()
lst = list()
act = list()
for i in data.split():
	lst.append(int(i))
n = lst[0]
m = lst[1]
i = 1
while i <= n:
	inp = input()
	for j in inp.split():
		act.append(j)
	i = i + 1
count = 0
for k in act:
	if k == 'C' or k == 'M' or k == 'Y':
		count = count + 1
if count > 0:
	print('#Color')
else:
	print('#Black&White')


temp = list((int(i) for i in input().split()))
n = temp[0]
re = []
for i in range(n):
	k = list((p for p in input().split()))
	for j in k:
		re.append(j)
if 'C' in re or 'M' in re or 'Y' in re:
	print('#Color')
else:
	print('#Black&White')


n = input()
l = n.split()
t = []
for i in range(int(l[0])):
	x = str(input())
	t = t + x.split()
y = set(t)
z = {'W', 'G', 'B'}
if y <= z:
	print('#Black&White')
else:
	print('#Color')


(m, n) = map(int, input().split())
color = []
count = 0
for i in range(m):
	nums = list(map(str, input().split()))
	color.append(nums)
for j in range(m):
	for k in range(n):
		if color[j][k] != 'W' and color[j][k] != 'B' and (color[j][k] != 'G'):
			count = count + 1
if count >= 1:
	print('#Color')
else:
	print('#Black&White')


import sys
input = sys.stdin.readline
(n, m) = map(int, input().strip().split())
a = []
for _ in range(n):
	[a.append(char) for char in input().strip().split()]
if 'C' in a or 'M' in a or 'Y' in a:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
z = []
for i in range(n):
	z += list(input().split())
z = set(z)
z = list(z)
if 'W' in z:
	z.remove('W')
if 'B' in z:
	z.remove('B')
if 'G' in z:
	z.remove('G')
if len(z) == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
lst = []
t = []
for i in range(n):
	x = input().split()
	lst.append(x)
for i in range(len(lst)):
	for j in range(m):
		if lst[i][j] == 'C' or lst[i][j] == 'Y' or lst[i][j] == 'M':
			print('#Color')
			exit()
print('#Black&White')


def colored():
	(m, n) = map(int, input().split())
	for _ in range(m):
		pixels = input().split()
		for pixel in pixels:
			if pixel not in ['W', 'B', 'G']:
				return '#Color'
	return '#Black&White'
print(colored())


(rows, columns) = map(int, input().split())
lst = []
for i in range(rows):
	for j in input().split():
		lst.append(j)
lst = list(set(lst))
if len(lst) > 3:
	print('#Color')
else:
	if 'W' in lst:
		lst.remove('W')
	if 'G' in lst:
		lst.remove('G')
	if 'B' in lst:
		lst.remove('B')
	if len(lst) == 0:
		print('#Black&White')
	else:
		print('#Color')


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


s = input().split()
l = list()
for i in range(0, int(s[0])):
	n = input().split()
	for j in range(0, len(n)):
		if n[j] == 'M' or n[j] == 'Y' or n[j] == 'C':
			l.append(n[j])
print('#Black&White' if len(l) == 0 else '#Color')


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


n = [int(num) for num in input().split(' ')]
l1 = []
for i in range(n[0]):
	l1.extend(input().split(' '))
if 'Y' in l1 or 'M' in l1 or 'C' in l1:
	print('#Color')
else:
	print('#Black&White')


(n, _) = map(int, input().split())
colors = ['C', 'M', 'Y']
lines = [list(filter(lambda x: x in colors, input().split())) for _ in range(n)]
for line in lines:
	if any(line):
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
colorlist = []
for i in range(n):
	newcolorlist = input().split()
	colorlist.append(newcolorlist)
color = 0
for i in colorlist:
	for j in i:
		if j == 'C' or j == 'M' or j == 'Y':
			color += 1
if color == 0:
	print('#Black&White')
else:
	print('#Color')


(rows, columns) = map(int, input().split())
matrix = []
for i in range(0, rows):
	matrix.append(input().split())
is_colored = False
for row in matrix:
	for item in row:
		if item == 'C' or item == 'Y' or item == 'M':
			is_colored = True
			break
	if is_colored:
		break
if is_colored:
	print('#Color')
else:
	print('#Black&White')


lvalue = list(map(int, input().split()))
n = lvalue[0]
m = lvalue[1]
l = []
for _ in range(n):
	x = list(map(str, input().split()))
	l.extend(x)
count = 0
for el in l:
	if el == 'C' or el == 'M' or el == 'Y':
		print('#Color')
		count += 1
		break
if count != 1:
	print('#Black&White')


(r, c) = map(int, input().split())
flag = 0
for i in range(r):
	colors = input().split()
	if flag:
		continue
	elif set(colors) - {'B', 'W', 'G'}:
		flag = 1
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
i = 0
j = 0
_count = 0
index = 0
for i in range(n):
	for j in range(1):
		a = list(map(str, input().split()))
		for index in range(m):
			if a[index] == 'W' or a[index] == 'B' or a[index] == 'G':
				pass
			else:
				_count = 1
				break
j = 0
i = 0
if _count == 0:
	print('#Black&White')
else:
	print('#Color')


colors = []
(x, y) = map(int, input().split())
for i in range(x):
	lis = input().split()
	for i in lis:
		colors.append(i)
if colors.count('B') + colors.count('G') + colors.count('W') == len(colors):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
a = set()
for i in range(n):
	b = input().split()
	a.update(b)
if len(a) == 3 and 'W' in a and ('B' in a) and ('G' in a) or (len(a) == 2 and ('W' in a and 'B' in a or ('W' in a and 'G' in a) or ('G' in a and 'B' in a))) or (len(a) == 1 and ('W' in a or 'B' in a or 'G' in a)):
	print('#Black&White')
else:
	print('#Color')


import sys
import math

def main():
	(n, m) = map(int, sys.stdin.readline().strip().split()[:2])
	pixel = ''
	for _ in range(n):
		sub = sys.stdin.readline().strip().split()
		subStr = ''.join(sub)
		pixel += subStr
	if pixel.count('Y') == 0 and pixel.count('C') == 0 and (pixel.count('M') == 0):
		print('#Black&White')
	else:
		print('#Color')
main()


(r, t) = [int(i) for i in input().split()]
colorless = '#Black&White'
for i in range(r):
	if colorless != '#Color':
		colors = [str(i) for i in input().split()]
		if 'C' in colors or 'M' in colors or 'Y' in colors:
			colorless = '#Color'
			break
	else:
		break
print(colorless)


PhotoSize = [int(x) for x in input().split()]
row = PhotoSize[0]
column = PhotoSize[1]
r = 1
RowMatrixFull = list()
while r <= row:
	RowMatrix = input().split()
	for c in range(column):
		RowMatrixFull.append(RowMatrix[c])
	r += 1
RowLen = int(len(RowMatrixFull))
Color = False
for z in range(RowLen):
	if RowMatrixFull[z] == 'C' or RowMatrixFull[z] == 'M' or RowMatrixFull[z] == 'Y':
		Color = True
		break
if Color:
	print('#Color')
else:
	print('#Black&White')


(z, s) = list(map(int, input().split()))
col = False
for _ in range(z):
	cur = list(input().split())
	if 'M' in cur or 'C' in cur or 'Y' in cur:
		col = True
print('#Color' if col else '#Black&White')


(n, m) = input().split()
(n, m) = (int(n), int(m))
while n:
	n = n - 1
	a = list(input().split())
	st = 0
	for i in range(m):
		if a[i] == 'C' or a[i] == 'M' or a[i] == 'Y':
			st = 1
			print('#Color')
			break
	if st == 0 and n == 0:
		print('#Black&White')
	elif st == 1:
		break
	else:
		continue


(n, m) = map(int, input().split())
color = 0
black = 0
for i in range(n):
	a = list(map(str, input().split()))
	C = a.count('C')
	M = a.count('M')
	Y = a.count('Y')
	W = a.count('W')
	G = a.count('G')
	B = a.count('B')
	color += C + M + Y
	black += W + G + B
if color > 0:
	print('#Color')
elif color == 0 and black > 0:
	print('#Black&White')


s = input()
A = s.split(' ')
n = int(A[0])
m = int(A[1])
d = 'Black&White'
for i in range(0, n):
	a = input()
	C = a.split()
	for j in range(0, m):
		b = C[j]
		if b == 'C' or b == 'M' or b == 'Y':
			d = 'Color'
print('#' + d)


(r, c) = map(int, input().split())
l = []
for i in range(r):
	l1 = list(map(str, input().split()))
	l.append(l1)
cnt = 0
for i in l:
	for j in i:
		if j == 'C' or j == 'Y' or j == 'M':
			cnt = 1
if cnt == 1:
	print('#Color')
else:
	print('#Black&White')


def color_or_bnw(n):
	colors = ['C', 'M', 'Y']
	for i in range(n):
		if any((c in colors for c in input().split())):
			return '#Color'
	return '#Black&White'
(n, m) = map(int, input().split())
print(color_or_bnw(n))


m = list(map(int, input().split()))
count = 0
for i in range(m[0]):
	row = list(map(str, input().split()))
	if row.count('W') + row.count('B') + row.count('G') == m[1]:
		count += 1
print('#Black&White') if count == m[0] else print('#Color')


(a, b) = map(int, input().split())
p = set()
bw = 0
c = 0
for _ in range(a):
	k = list(map(str, input().split()))
	p = p | set(k)
	for i in k:
		if i == 'B' or i == 'W' or i == 'R' or (i == 'B') or (i == 'G'):
			bw += 1
		else:
			c += 1
if bw >= c and 'C' not in p and ('Y' not in p) and ('M' not in p):
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(x) for x in input().split()]
l = []
for i in range(n):
	word = input().split()
	for j in range(m):
		l.append(word[j])
if l.count('C') + l.count('M') + l.count('Y') == 0:
	print('#Black&White')
else:
	print('#Color')


row = int(input().split()[0])
color = False
for i in range(row):
	s = input()
	if s.find('C') != -1 or s.find('M') != -1 or s.find('Y') != -1:
		color = True
if color:
	print('#Color')
else:
	print('#Black&White')


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


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_int = lambda : int(sys.stdin.readline())
(n, m) = get_int_list()
matrix = [get_string().split() for i in range(n)]
flag = False
for i in range(n):
	for j in range(m):
		if matrix[i][j] in ['C', 'M', 'Y']:
			flag = True
			break
if flag:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
c = ['C', 'M', 'Y']
v = False
nl = []
while n:
	ml = list(map(str, input().split()))
	for _ in ml:
		if _ in c:
			v = True
			break
	nl.append(ml)
	n -= 1
if v:
	print('#Color')
else:
	print('#Black&White')


m = []
b = []
(z, x) = [int(d) for d in input().split()]
for c in range(z):
	v = input().split()
	b.append(v)
for a in b:
	for s in a:
		m.append(s)
if 'C' in m or 'M' in m or 'Y' in m:
	print('#Color')
else:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
b = True
for i in range(n):
	if b == True:
		s = list(input())
	if s.count('W') + s.count('B') + s.count('G') != m:
		b = False
print('#Color' if b == False else '#Black&White')


(n, m) = map(int, input().split())
colors_array = [input().split() for _ in range(n)]
colored_letters = ['C', 'M', 'Y']

def check_color():
	for colors in colors_array:
		for color in colors:
			if color in colored_letters:
				return '#Color'
	return '#Black&White'
print(check_color())


(n, m) = map(int, input().split())
c = 0
for i in range(n):
	l = list(input().split())
	c += l.count('W') + l.count('B') + l.count('G')
if c == m * n:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
pixels = []
colored = False
for i in range(n):
	pixels.append(list(map(str, input().split())))
for pixel in pixels:
	if pixel.__contains__('C') or pixel.__contains__('M') or pixel.__contains__('Y'):
		colored = True
		break
print('#Color' if colored else '#Black&White')


(n, m) = [int(x) for x in input().split()]
t = 0
for i in range(n):
	ss = [str(x) for x in input().split()]
	t += ss.count('C') + ss.count('Y') + ss.count('M')
if t > 0:
	print('#Color')
else:
	print('#Black&White')


s = set()
num = list(map(int, input().strip().split()))
for i in range(num[0]):
	s = s | set(input().split(' '))
if len(s - {'W', 'G', 'B'}) > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
A = []
for i in range(n):
	arr = input().split()
	A += arr
for j in A:
	if j not in 'BWG':
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
print('#Black&White' if set([y for x in [input().split() for i in range(n)] for y in x]) - set(['W', 'G', 'B']) == set([]) else '#Color')


(n, t) = map(int, input().split())
fol = []
for i in range(n):
	lt = list(map(str, input().split()))
	fol.extend(lt)
for j in fol:
	if j == 'C' or j == 'M' or j == 'Y':
		print('#Color')
		break
else:
	print('#Black&White')


mn = input().split()
n = int(mn[0])
m = int(mn[1])
l = ['C', 'M', 'Y']
photo_type = '#Black&White'
for i in range(n):
	ar = input().split()
	for j in range(m):
		if ar[j] in l:
			photo_type = '#Color'
print(photo_type)


(n, m) = map(int, input().split())
arr = []
for i in range(n):
	brr = input().split()
	arr.append(brr)
B_W = True
for item in arr:
	if 'C' in item or 'M' in item or 'Y' in item or ('C' in item):
		print('#Color')
		B_W = False
		break
if B_W:
	print('#Black&White')


(row, col) = input().split()
row = int(row)
col = int(col)
matrix = []
blckWhite = 0
color = 0
for i in range(row):
	a = []
	a = list(map(str, input().split()))
	matrix.append(a)
for i in range(row):
	for j in range(col):
		if matrix[i][j] == 'W' or matrix[i][j] == 'G' or matrix[i][j] == 'B':
			blckWhite += 1
		else:
			color += 1
if color > 0:
	print('#Color')
else:
	print('#Black&White')


(a, b) = [int(i) for i in input().split(' ')]
tmp = 0
for i in range(a):
	s = [j for j in input().split(' ')]
	for j in s:
		if j in ['C', 'M', 'Y']:
			tmp = 1
			break
	if tmp == 1:
		break
if tmp == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
x = ''
for i in range(n):
	l = input()
	x = x + str(l)
if 'C' in x or 'Y' in x or 'M' in x:
	print('#Color')
else:
	print('#Black&White')


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


(n, m) = map(int, input().split())
t = True
for i in range(n):
	A = [str(k) for k in input().split()]
	for j in A:
		if j in ['C', 'M', 'Y']:
			t = False
if t == False:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
colors = non = 0
for _ in range(n):
	for i in input().split():
		if i == 'C' or i == 'Y' or i == 'M':
			colors += 1
		else:
			non += 1
if colors:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
for i in range(n):
	k = list(input().split())
	for j in range(len(k)):
		if not (k[j] == 'W' or k[j] == 'G' or k[j] == 'B'):
			print('#Color')
			exit()
print('#Black&White')


a = int(input().split(' ')[0])
tp = '#Black&White'
for i in range(a):
	if input().replace('B', '').replace('W', '').replace(' ', '').replace('G', '') != '':
		tp = '#Color'
print(tp)


(n, m) = input().split()
(n, m) = (int(n), int(m))
for i in range(n):
	l = input().split()
	b = l.count('B')
	w = l.count('W')
	g = l.count('G')
	if b + w + g == len(l) or b + w == len(l) or b + g == len(l) or (w + g == len(l)):
		continue
	else:
		print('#Color')
		break
else:
	print('#Black&White')


(n, m) = map(int, input().split())
color = set('CMY')
cs = set()
for i in range(n):
	cs = cs.union(set(input().split()))
if len(cs.intersection(color)) == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
ls = []
for i in range(n):
	color = list(map(str, input().split()))
	ls += color
for i in ls:
	if i in 'CMY':
		answer = '#Color'
		break
	else:
		answer = '#Black&White'
print(answer)


(n, m) = map(int, input().split())
grid = [input().split() for _ in range(n)]
bw = {'B', 'W', 'G'}
for i in grid:
	for j in i:
		if j not in bw:
			print('#Color')
			break
	else:
		continue
	break
else:
	print('#Black&White')


rows = int(input().split(' ')[0])
for _ in range(rows):
	line = input()
	if 'C' in line or 'M' in line or 'Y' in line:
		print('#Color')
		break
else:
	print('#Black&White')


w = input().split()
q = int(w[0])
v = int(w[1])
f = True
i = 0
while q > 0 and f:
	x = list(map(str, input().split()))
	z = v
	i = 0
	while z > 0:
		if not (x[i] == 'G' or x[i] == 'B' or x[i] == 'W'):
			f = False
		i += 1
		z -= 1
	q -= 1
if f:
	print('#Black&White')
else:
	print('#Color')


(k, w) = [int(y) for y in input().split()]
r = k * w
x = 0
zdjecie = ['']
for i in range(k):
	zdjecie = zdjecie + input().split()
for i in range(1, r + 1):
	if zdjecie[i] == 'C' or zdjecie[i] == 'M' or zdjecie[i] == 'Y':
		x = 1
if x == 1:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
q = []
c = 0
for i in range(n):
	q.append(input())
for i in q:
	for j in range(0, len(i)):
		if i[j] == 'C' or i[j] == 'M' or i[j] == 'Y':
			c += 1
if c == 0:
	print('#Black&White')
else:
	print('#Color')


[n, m] = [int(x) for x in input().split()]
matrix = []
black_and_white = True
for i in range(0, n):
	matrix.append([x for x in input().split()])
for i in range(0, n):
	for j in range(0, m):
		if matrix[i][j] != 'W' and matrix[i][j] != 'B' and (matrix[i][j] != 'G'):
			black_and_white = False
print(['#Color', '#Black&White'][black_and_white])


(n, m) = map(int, input().split())
color = 0
for y in range(n):
	a = list(map(str, input().split()))
	for x in range(m):
		if a[x] != 'B' and a[x] != 'W' and (a[x] != 'G'):
			color = 1
if color:
	print('#Color')
else:
	print('#Black&White')


import math
(n, m) = map(int, input().split())
a = []
for i in range(n):
	a.append(list(input().split()))
color = False
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':
			color = True
			break
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
temp = []
while n > 0:
	temp.append(input())
	n -= 1
res = '#Black&White'
for i in temp:
	if 'C' in i or 'M' in i or 'Y' in i:
		res = '#Color'
		break
print(res)


flag = False
_ = ['G', 'B', 'W']
(a, b) = map(int, input().split())
for i in range(a):
	list1 = list(map(str, input().split()))
	for j in range(b):
		if list1[j] not in _:
			flag = True
if flag:
	print('#Color')
else:
	print('#Black&White')


(m, n) = map(int, input().split())
bw = False
color = False
for i in range(m):
	test = input()
	if 'B' in test or 'G' in test or 'W' in test:
		bw = True
	if 'C' in test or 'M' in test or 'Y' in test:
		color = True
if not color:
	print('#Black&White')
else:
	print('#Color')


(n, m) = list(map(int, input().split()))
lst = []
c = False
for i in range(n):
	if not c:
		s = input().split()
		for ii in s:
			if ii not in ['G', 'B', 'W']:
				c = True
	else:
		break
if c:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
is_bw = True
for _ in range(n):
	for e in input().split():
		if e != 'W' and e != 'B' and (e != 'G'):
			is_bw = False
if is_bw:
	print('#Black&White')
else:
	print('#Color')


inlet = input().split(' ')
mat = []
for i in range(int(inlet[0])):
	mat.append(input().split(' '))
for i in range(int(inlet[0])):
	cont = mat[i].count('C')
	cont += mat[i].count('M')
	cont += mat[i].count('Y')
	if cont > 0:
		print('#Color')
		exit()
print('#Black&White')


(n, m) = map(int, input().split())
string = ''
for i in range(n):
	string += input()
string = string.replace(' ', '')

def f(string):
	cores = ['C', 'M', 'Y']
	for cor in cores:
		if cor in string:
			return True
	return False
if f(string):
	print('#Color')
else:
	print('#Black&White')


(n, m) = list(map(int, input().split()))
colour = False
use = ['W', 'B', 'G']
while n > 0:
	s = input().split()
	for x in s:
		if not x in use:
			colour = True
	n = n - 1
if colour:
	print('#Color')
else:
	print('#Black&White')


a = ['C', 'M', 'Y']
b = ['W', 'G', 'B']
(n, m) = map(int, input().split())
for i in range(n):
	l = list(input())
	for j in l:
		if j in a:
			c = 0
			break
		else:
			c = 1
	if c == 0:
		break
if c == 0:
	print('#Color')
else:
	print('#Black&White')


def color(c):
	return c in 'CMY'

def photos():
	res = False
	l = str(input())
	l = [int(i) for i in l.split()]
	for i in range(l[0]):
		s = str(input())
		r = [color(c) for c in s.split()]
		if True in r:
			res = True
	if res == True:
		print('#Color')
	else:
		print('#Black&White')
photos()


(n, _) = [int(i) for i in input().split()]
for _ in range(n):
	for pixel in input().split():
		if pixel == 'C' or pixel == 'M' or pixel == 'Y':
			print('#Color')
			exit()
print('#Black&White')


def main():
	(r, c) = map(int, input().split())
	f = list()
	for i in range(r):
		g = input().split()
		f.append(g)
	for i in f:
		for e in i:
			if e != 'B' and e != 'W' and (e != 'G'):
				print('#Color')
				return
	print('#Black&White')
main()


(n, m) = list(map(int, input().split()))
ans = '#Black&White'
for i in range(n):
	r = input().split()
	if 'M' in r or 'Y' in r or 'C' in r:
		ans = '#Color'
		break
print(ans)


(r, c) = map(int, input().split())
bw = 0
cl = 0
for i in range(r):
	a = list(input().split())
	if a.count('B') + a.count('G') + a.count('W') == c:
		bw = bw + 1
	else:
		cl = cl + 1
if bw == r:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().strip().split())
k = '#Black&White'
for d in range(0, n):
	l1 = input().split()
	for i in l1:
		if i not in ['W', 'G', 'B']:
			k = '#Color'
print(k)


p = input().split(' ')
a = int(p[0])
b = int(p[1])
i = 1
j = 0
while i <= a:
	m = input().split()
	for x in range(0, b):
		if m[x] == 'C' or m[x] == 'Y' or m[x] == 'M':
			j = 1
	i += 1
if j == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
blackhas = True
a = ['C', 'M', 'Y']
for i in range(n):
	s = input()
	for i in range(3):
		if a[i] in s:
			blackhas = False
			break
	if not blackhas:
		break
if blackhas:
	print('#Black&White')
else:
	print('#Color')


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


(n, m) = map(int, input().split())
(f, f1, f2) = (0, 0, 0)
for i in range(n):
	l = list(input().split())
	f = f + l.count('C')
	f1 = f1 + l.count('M')
	f2 = f2 + l.count('Y')
if f1 + f + f2 > 0:
	print('#Color')
else:
	print('#Black&White')


(x, y) = map(int, input().split())
lst = []
for i in range(x):
	z = input().split()
	lst.append(z)
	if 'C' in z or 'M' in z or 'Y' in z:
		print('#Color')
		break
else:
	print('#Black&White')


(a, b) = map(int, input().split())
c = str()
for x in range(a):
	c = c + input()
if c.find('C') == -1 and c.find('M') == -1 and (c.find('Y') == -1):
	print('#Black&White')
else:
	print('#Color')


(n, m) = [int(n) for n in input().split()]
matrix = []
for i in range(n):
	text = input().upper()
	text = list(text)
	matrix.append(text)
count = 0
for i in range(len(matrix)):
	for j in range(len(matrix[i])):
		if matrix[i][j] == 'B' or matrix[i][j] == 'W' or matrix[i][j] == 'G':
			count += 1
if count == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
found = False
for i in range(n):
	li = input().split()
	if 'C' in li:
		print('#Color')
		found = True
		break
	elif 'Y' in li:
		print('#Color')
		found = True
		break
	elif 'M' in li:
		print('#Color')
		found = True
		break
if not found:
	print('#Black&White')


(n, m) = map(int, input().split())
colors = 'CMY'
for i in range(n):
	row = input().split()
	for c in colors:
		if c in row:
			print('#Color')
			quit()
print('#Black&White')


(n, m) = map(int, input().split())
l = ['B', 'G', 'W']
a = ['B', 'W']
b = ['B', 'G']
c = ['G', 'W']
c = 0
d = []
for i in range(n):
	y = list(map(str, input().split()))
	for i in y:
		d.append(i)
s = set(d)
x = list(s)
x.sort()
if x == l or x == a or x == b or (x == c) or (x == ['B']) or (x == ['G']) or (x == ['W']):
	print('#Black&White')
else:
	print('#Color')


a = []
(n, m) = map(int, input().split())
for i in range(n):
	a.append(input())
for i in a:
	if 'C' in i or 'M' in i or 'Y' in i:
		print('#Color')
		exit(0)
print('#Black&White')


(a, b) = map(int, input().split())
k = 'CYM'
flag = 0
for i in range(a):
	ls = input().split()
	for j in ls:
		if j in k:
			flag = 1
			break
if flag == 0:
	print('#Black&White')
else:
	print('#Color')


a = input()
list1 = []
for i in range(int(a[0])):
	temp = input().split()
	for item in temp:
		list1.append(item)
if 'C' in list1 or 'M' in list1 or 'Y' in list1:
	print('#Color')
else:
	print('#Black&White')


from sys import exit
dimension = int(input().split()[0])
for i in range(dimension):
	color = input().split()
	if 'C' in color or 'M' in color or 'Y' in color:
		print('#Color')
		exit()
print('#Black&White')


a = [int(x) for x in input().split()]
color = False
for i in range(0, a[0]):
	b = str(input())
	if b.find('C') + b.find('M') + b.find('Y') != -3:
		color = True
		break
if color:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split(' '))
b = []
for i in range(n):
	a = list(map(str, input().split(' ')))
	b.extend(a)
colours = ['B', 'G', 'W']
c = []
for i in range(len(b)):
	if b[i] in colours:
		c.append(b[i])
	else:
		continue
if len(c) == len(b):
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
(bnw, colours) = (True, {'M', 'C', 'Y'})
for _ in range(n):
	a = set(input().split())
	if not colours.isdisjoint(a):
		bnw = False
if bnw:
	print('#Black&White')
else:
	print('#Color')


import math
from collections import *
import sys
from functools import reduce

def get_ints():
	return map(int, input().strip().split())

def get_list():
	return list(get_ints())

def get_string():
	return list(input().strip().split())

def printxsp(*args):
	return print(*args, end='')

def printsp(*args):
	return print(*args, end=' ')
UGLYMOD = int(1000000000.0) + 7
SEXYMOD = 998244353
MAXN = int(100000.0)
(n, m) = get_ints()
flag = True
matr = []
for i in range(n):
	matr.append(list(input().split()))
for i in range(n):
	for j in range(m):
		if matr[i][j] not in 'BWG':
			flag = False
print('#Color' if not flag else '#Black&White')


(n, m) = map(int, input().split())
BW = 1
for i in range(n):
	colorbox = input().split()
	if 'C' in colorbox or 'M' in colorbox or 'Y' in colorbox:
		BW = 0
if BW:
	print('#Black&White')
else:
	print('#Color')


import os
import sys
from io import BytesIO, IOBase

def solve():
	(n, m) = map(int, input().split())
	for j in range(n):
		mat = list(map(str, input().split()))
		for i in range(len(mat)):
			if mat[i] == 'C' or mat[i] == 'M' or mat[i] == 'Y':
				return '#Color'
	return '#Black&White'

def main():
	print(solve())
	pass
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


color_str = ''
colored_list = ['Y', 'M', 'C']
colered = False
(rows, cols) = (int(i) for i in input().split())
for i in range(rows):
	color_str += input()
for i in colored_list:
	if i in color_str:
		colered = True
if colered:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split()]
inp = []
for i in range(n):
	inp.append(input().split())
color = '#Black&White'
for i in inp:
	if 'C' in i or 'M' in i or 'Y' in i:
		color = '#Color'
		break
print(color)


(n, m) = map(int, input().split())
lst = [el for _ in range(n) for el in input().split()]
print('#Black&White' if all((el in 'BWG' for el in lst)) else '#Color')


colors = 'CMY'
(r, c) = [int(x) for x in input().split()]
cols = ''
for i in range(r):
	cols += input()
print('#' + ['Black&White', 'Color'][sum((x in cols for x in colors)) > 0])


(a, b) = map(int, input().split())
p = ['Y', 'M', 'C']
c = 0
for _ in range(a):
	l = input().split()
	for i in l:
		if c != 0:
			break
		if i in p:
			c += 1
			break
if c != 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
bw = True
for i in range(n):
	p = list(input().split())
	if p.count('C') > 0 or p.count('M') > 0 or p.count('Y') > 0:
		bw = False
print('#Black&White' if bw else '#Color')


(m, n) = input().split()
m = int(m)
n = int(n)
A = []
for i in range(0, m):
	a = input()
	for j in a.split():
		A.append(j)
B = list(set(A))
y = 0
for x in B:
	if x != 'W' and x != 'G' and (x != 'B'):
		y = 1
		break
if y == 0:
	print('#Black&White')
elif y == 1:
	print('#Color')


def readlist():
	a = []
	line = input().split()
	for i in line:
		a.append(i)
	return a
p = readlist()
n = int(p[0])
m = int(p[1])
matrix = [[0] * m for i in range(n)]
for i in range(n):
	matrix[i] = readlist()
flag = False
for i in range(n):
	if 'C' in matrix[i] or 'M' in matrix[i] or 'Y' in matrix[i]:
		flag = True
if flag == True:
	print('#Color')
else:
	print('#Black&White')


a = input().split()
ok = 1
color = 'CMY'
for i in range(0, int(a[0])):
	b = input().split()
	for j in range(0, int(a[1])):
		if color.find(b[j]) != -1:
			ok = 2
if ok == 2:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(i) for i in input().split()]
c = [input().split() for i in range(n)]
data = []
for i in c:
	s = i.count('W') + i.count('G') + i.count('B')
	data.append(s)
if sum(data) == n * m:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
l = []
cnt = 0
for i in range(n):
	tt = list(map(str, input().split()))
	for i in tt:
		if i != 'W' and i != 'B' and (i != 'G'):
			cnt += 1
if cnt > 0:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
i = 0
t = 0
k = True
while k and i < n:
	a = input().split()
	if 'C' in a or 'M' in a or 'Y' in a:
		t += 1
		k = False
	else:
		i += 1
if t == 0:
	print('#Black&White')
else:
	print('#Color')


import math
import os
import random
import re
import sys
m = input().split()
row = m[0]
col = m[1]
s = ''
i = 0
while i < int(row):
	s = s + str(input())
	i = i + 1
s = s.replace(' ', '')
s = s.replace('B', '')
s = s.replace('W', '')
s = s.replace('G', '')
if len(s) == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split(' '))
s = '#Black&White'
for z in range(n):
	t = input()
	if t.find('C') >= 0 or t.find('Y') >= 0 or t.find('M') >= 0:
		s = '#Color'
		break
print(s)


(n, m) = input().strip().split(' ')
(n, m) = (int(n), int(m))
l = []
for i in range(n):
	list1 = input().strip().split(' ')
	l.append(list1)
for i in range(n):
	for c in l[i]:
		if c != 'W' and c != 'B' and (c != 'G'):
			print('#Color')
			exit()
print('#Black&White')


def readlist():
	a = []
	line = input().split()
	for i in line:
		a.append(i)
	return a
L = []
a = readlist()
for i in range(int(a[0])):
	a = readlist()
	for j in a:
		L.append(j)
if 'C' in L or 'M' in L or 'Y' in L:
	print('#Color')
else:
	print('#Black&White')


def Brain():
	n = list(map(int, input().split()))
	I = []
	for i in range(n[0]):
		k = list(input().split())
		I.append(k)
	for i in range(n[0]):
		for j in range(n[1]):
			if I[i][j] not in ['B', 'W', 'G']:
				return '#Color'
	else:
		return '#Black&White'
print(Brain())


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


read = lambda : map(int, input().split())
(n, m) = read()
a = set()
for i in range(n):
	s = input().split()
	for j in s:
		a.add(j)
flag = 'C' in a or 'Y' in a or 'M' in a
print('#Color' if flag else '#Black&White')


import sys
print('#Color' if any((i in 'CMY' for i in sys.stdin.read())) else '#Black&White')


(n, m) = input().split()
(n, m) = (int(n), int(m))
arr = []
for i in range(n):
	arr.append(input().split())

def CorB(arr):
	for i in arr:
		for j in i:
			if j != 'W' and j != 'G' and (j != 'B'):
				return '#Color'
	return '#Black&White'
print(CorB(arr))


(xi, yi) = input().split()
x = int(xi)
y = int(yi)
pix = []
clr = ''
b = ['Y', 'C', 'M']
for i in range(x):
	s = input().split()
	if any((True for z in s if z in b)):
		clr = '#Color'
		break
	else:
		clr = '#Black&White'
print(clr)


(n, m) = list(map(int, input().split(' ')))
allColours = []

def findColor(allColours):
	for i in range(len(allColours)):
		if allColours[i] in ['C', 'M', 'Y']:
			return '#Color'
	return '#Black&White'
for _ in range(n):
	colours = list(input().split(' '))
	for i in colours:
		allColours.append(i)
print(findColor(allColours))


num = list(map(int, input().strip().split()))
lis = []
for i in range(num[0]):
	value = input().strip().split()
	lis.extend(value)
res = set(lis) - {'W', 'G', 'B'}
if len(res) == 0:
	print('#Black&White')
else:
	print('#Color')


n = int(input().split()[0])
ans = '#Black&White'
for i in range(n):
	line = input()
	if 'C' in line or 'Y' in line or 'M' in line:
		ans = '#Color'
		break
print(ans)


(n, m) = [int(i) for i in input().split()]
x = set()
c = {'C', 'M', 'Y'}
for i in range(n):
	l = set(input().split())
	x = x.union(l)
print('#Black&White' if x.isdisjoint(c) else '#Color')


(a, b) = input().split()
s = []
for i in range(0, int(a)):
	s.append(input().split())
ans = '#Black&White'
for i in range(0, int(a)):
	for j in range(0, int(b)):
		if s[i][j] == 'C' or s[i][j] == 'M' or s[i][j] == 'Y':
			ans = '#Color'
			break
print(ans)


a = input().split()
for i in range(len(a)):
	a[i] = int(a[i])
n = a[0]
l = 0
for i in range(n):
	s = str(input())
	for k in range(len(s)):
		if not (s[k] == 'W' or s[k] == 'B' or s[k] == ' ' or (s[k] == 'G')):
			l = 1
			break
if l == 1:
	print('#Color')
else:
	print('#Black&White')


def BrainsPhotos():
	(x, y) = map(int, input().split())
	l = []
	for i in range(x):
		n = input().split()
		l.append(n)
	flag = 0
	for i in range(len(l)):
		if 'C' in l[i] or 'M' in l[i] or 'Y' in l[i]:
			flag = 1
	if flag == 0:
		return '#Black&White'
	else:
		return '#Color'
print(BrainsPhotos())


(a, b) = map(int, input().split())
for _ in range(a):
	r = input().split()
	if 'C' in r or 'M' in r or 'Y' in r:
		print('#Color')
		break
else:
	print('#Black&White')


(m, n) = map(int, input().rstrip().split())
count = 0
for _ in range(m):
	a = input().rstrip().split()
	if 'C' in a or 'M' in a or 'Y' in a:
		print('#Color')
		count = 1
		break
if not count:
	print('#Black&White')


inn = [int(x) for x in input().split(' ')]
n = inn[0]
m = inn[1]
arr = []
for i in range(n):
	line = [x for x in input().split(' ')]
	arr.append(line)
isColor = False
for i in range(n):
	for j in range(m):
		if arr[i][j] == 'C' or arr[i][j] == 'M' or arr[i][j] == 'Y':
			isColor = True
			break
if isColor:
	print('#Color')
else:
	print('#Black&White')


(n, m) = map(int, input().split())
a = []
for i in range(n):
	s = list(map(str, input().split()))
	for j in range(len(s)):
		a.append(s[j])
an = ''
if 'C' in a or 'M' in a or 'Y' in a:
	an = '#Color'
else:
	an = '#Black&White'
print(an)


(n, _) = list(map(int, input().split()))
gen = (c for _ in range(n) for c in input() if c in 'CMY')
if not list(gen):
	print('#Black&White')
else:
	print('#Color')


i = int(input()[0])
n = 0
c = 'MCY'
for j in range(i):
	k = input()
	for m in range((len(k) + 1) // 2):
		if k[2 * m] in c:
			n += 1
			break
if n == 0:
	print('#Black&White')
else:
	print('#Color')


(n, m) = map(int, input().split())
ma = []
s = 0
color = ['C', 'M', 'Y']
for i in range(n):
	ma.append(input().split())
	for j in range(m):
		if ma[i][j] in color:
			s += 1
			break
if s != 0:
	print('#Color')
else:
	print('#Black&White')


import sys
if False:
	input = open('photo.txt', 'r')
else:
	input = sys.stdin
x = input.readline().split()
n = int(x[0])
m = int(x[1])
matrix = []
for i in range(n):
	i = input.readline().split()
	matrix.append(i)
color = False
for m in matrix:
	if 'C' in m or 'Y' in m or 'M' in m:
		color = True
if color == True:
	print('#Color')
else:
	print('#Black&White')


inp = input().split()
inp = list(map(int, inp))
(n, m) = inp
mat = []
for i in range(n):
	mat.append(input().split())
ans = '#Black&White'
for i in range(n):
	for j in range(m):
		if mat[i][j] == 'C' or mat[i][j] == 'M' or mat[i][j] == 'Y':
			ans = '#Color'
			break
print(ans)


(m, n) = [int(x) for x in input().split()]
colored = False
for i in range(m):
	s = input()
	if any((c in s for c in 'CMY')):
		colored = True
if colored:
	print('#Color')
else:
	print('#Black&White')


a = input().split()
A = True
b = [[None for x in range(100)] for y in range(100)]
for i in range(int(a[0])):
	b[i] = input().split()
	if 'C' in b[i] or 'M' in b[i] or 'Y' in b[i]:
		print('#Color')
		A = False
		break
if A:
	print('#Black&White')


arr = list(map(int, input().split()))
rows = arr[0]
cols = arr[1]
img = []
for i in range(rows):
	tmp = list(map(str, input().split()))
	img.append(tmp)
colors = ['C', 'M', 'Y']
c = False
for i in range(rows):
	for j in range(cols):
		if img[i][j] in colors:
			c = True
if c:
	print('#Color')
else:
	print('#Black&White')


(a, b) = map(int, input().split())
s = set()
for i in range(a):
	li = input().split()
	for j in li:
		s.add(j)
print('#Color' if 'C' in s or 'M' in s or 'Y' in s else '#Black&White')


(n, m) = map(int, input().split())
bw = 0
c = 0
for i in range(n):
	ip = set(input().split())
	if len(ip.intersection({'C', 'M', 'Y'})) == 0:
		bw = 1
	else:
		c = 1
if c == 1:
	print('#Color')
else:
	print('#Black&White')


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


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

def is_color():
	for _ in range(n):
		row = input().split()
		gen = (c for c in row if c in 'CMY')
		for _ in gen:
			return True
	return False
print('#Color' if is_color() else '#Black&White')


(n, m) = list(map(int, input().split()))
color = False
for i in range(n):
	s = input().split(' ')
	_ = len([_ for _ in s if _ not in ['B', 'W', 'G']])
	if _ > 0:
		color = True
		break
print('#Color' if color else '#Black&White')


(N, M) = [int(x) for x in input().split()]
matrix = []
IsColored = False
for i in range(N):
	matrix.append([x for x in input().split()])
for i in range(N):
	for ii in range(M):
		if matrix[i][ii] == 'C' or matrix[i][ii] == 'M' or matrix[i][ii] == 'Y':
			IsColored = True
			break
if IsColored == True:
	print('#Color')
else:
	print('#Black&White')


(n, m) = [int(x) for x in input().split(' ')]
c = 0
for i in range(n):
	line = input().split(' ')
	if 'C' in line or 'M' in line or 'Y' in line:
		c += 1
		print('#Color')
		break
if c == 0:
	print('#Black&White')


import sys, math
wtf = sys.stdin.read()
wtf = wtf.strip().split('\n')
str = ''.join(sorted(set(''.join(wtf[1:]).replace(' ', ''))))
tmp = ['B', 'W', 'G', 'BW', 'BG', 'BGW', 'GW']
print('#Black&White' if str in tmp else '#Color')


(n, m) = map(int, input().split())
t = 0
for i in range(n):
	s = input()
	x = s.split(' ')
	for i in x:
		if i == 'C':
			t = 1
		if i == 'M':
			t = 1
		if i == 'Y':
			t = 1
if t == 1:
	print('#Color')
else:
	print('#Black&White')