People in Chefland have three different eye colors, namely brown, blue, and green. green is the rarest of the eye colors whereas brown is most common.

The eye color of the child of two people is most likely to be the most common eye color between them. 

You are given two characters denoting the eye colors of two people in Chefland. The character R denotes bRown color, B denotes Blue color, and G denotes Green color.

Determine the most likely eye color of their child. (Print R, B or G denoting bRown, Blue or Green respectively).

Please see the sample test cases below for explained examples.

------ Input Format ------ 

- The first (and only) line of input contains two space-separated characters, the eye colors of the parents.

------ Output Format ------ 

Print a single character denoting the most likely eye color of the child. (Print R, B or G denoting brown, blue or green respectively).

------ Constraints ------ 

- The input contains two space-separated characters
- Each character in the input is one among {R, B, G}.

------ subtasks ------ 

----- Sample Input 1 ------ 
R B

----- Sample Output 1 ------ 
R
----- explanation 1 ------ 
The two people have brown and blue eyes and brown is the most common. Therefore, their child  will most likely have brown eyes.

----- Sample Input 2 ------ 
B B

----- Sample Output 2 ------ 
B
----- explanation 2 ------ 
Both parents have blue eyes, therefore their child will most likely have blue eyes

----- Sample Input 3 ------ 
G B

----- Sample Output 3 ------ 
B
----- explanation 3 ------ 
The parents have green and blue eyes, out of which blue is more common than green, therefore the child will most likely have blue eyes.

Difficulty: EASY

Solutions:
(a, b) = map(str, input().split())
if a == 'R' or b == 'R':
	print('R')
elif a == 'B' or b == 'B':
	print('B')
else:
	print('G')


(X, Y) = map(str, input().split())
if X == 'R' or Y == 'R':
	print('R')
elif X == 'B' or Y == 'B':
	print('B')
else:
	print('G')


p = input().split()
if 'R' in p:
	print('R')
elif 'B' in p:
	print('B')
else:
	print('G')


li = input().split()
if li[0] != li[1]:
	if li[1] == 'G' and li[0] == 'B':
		print('B')
	elif li[0] == 'G' and li[1] == 'B':
		print('B')
	else:
		print('R')
else:
	print(li[0])


(x, y) = map(str, input().split())
if x == 'R' or y == 'R':
	print('R')
elif x == 'B' or y == 'B':
	print('B')
else:
	print('G')


a = input()
b = a.split()
if b[0] == 'R' or b[1] == 'R':
	print('R')
elif b[0] == 'B' or b[1] == 'B':
	print('B')
else:
	print('G')


e = input().split()
if e[0] == e[1]:
	print(e[0])
elif 'R' in e and 'B' in e:
	print('R')
elif 'R' in e and 'G' in e:
	print('R')
elif 'B' in e and 'G' in e:
	print('B')


(p1, p2) = map(str, input().split(' '))
if 'R' in (p1, p2):
	print('R')
elif 'B' in (p1, p2) and 'R' not in (p1, p2):
	print('B')
elif p1 == 'G' == p2:
	print('G')


s = input()
if 'R' in s:
	print('R')
elif 'B' in s:
	print('B')
else:
	print('G')


a = tuple(map(str, input().split()))
if 'R' in a:
	print('R')
elif 'B' in a:
	print('B')
else:
	print('G')


(x, y) = map(str, input().split())
color = {'R': 2, 'B': 1, 'G': 0}
ma = max(color[x], color[y])
if ma == 1:
	print('B')
elif ma == 2:
	print('R')
else:
	print('G')


(color1, color2) = map(str, input().split())
if color1 == color2:
	print(color1)
elif color1 == 'R' or color2 == 'R':
	print('R')
elif color1 == 'B' or color2 == 'B':
	print('B')
else:
	print('G')


(x1, y1) = map(str, input().split())
if x1 == 'R' or y1 == 'R':
	print('R')
elif x1 == 'B' or y1 == 'B':
	print('B')
else:
	print('G')


(x, y) = input().split()
if x == 'R' and y == 'R':
	print('R')
elif x == 'R' and y == 'B':
	print('R')
elif x == 'R' and y == 'G':
	print('R')
elif x == 'B' and y == 'B':
	print('B')
elif x == 'B' and y == 'R':
	print('R')
elif x == 'B' and y == 'G':
	print('B')
elif x == 'G' and y == 'G':
	print('G')
elif x == 'G' and y == 'B':
	print('B')
elif x == 'G' and y == 'R':
	print('R')


(Y, Z) = map(str, input().split())
if Y == 'R' and Z == 'R' or (Y == 'B' and Z == 'B') or (Y == 'G' and Z == 'G'):
	print(Y)
elif Y == 'R' and Z == 'B' or (Y == 'B' and Z == 'R'):
	print('R')
elif Y == 'G' and Z == 'B' or (Y == 'B' and Z == 'G'):
	print('B')
else:
	print('R')


dict1 = {'R': 3, 'B': 2, 'G': 1}
dict2 = {3: 'R', 2: 'B', 1: 'G'}
(color1, color2) = input().split()
(m1, m2) = (dict1[color1], dict1[color2])
m = max(m1, m2)
print(dict2[m])


(x, y) = map(str, input().split())
lst = ['G', 'B', 'R']
print(lst[max(lst.index(x), lst.index(y))])


(x, y) = map(str, input().split())
if x == 'R' and y == 'B':
	print('R')
elif x == 'R' and y == 'G':
	print('R')
elif x == 'R' and y == 'R':
	print('R')
elif x == 'B' and y == 'G':
	print('B')
elif x == 'B' and y == 'R':
	print('R')
elif x == 'B' and y == 'B':
	print('B')
elif x == 'G' and y == 'G':
	print('G')
elif x == 'G' and y == 'B':
	print('B')
elif x == 'G' and y == 'R':
	print('R')


(c1, c2) = input().split()
if c1 == 'R' and c2 == 'B' or (c1 == 'B' and c2 == 'R'):
	print('R')
elif c1 == 'R' and c2 == 'G' or (c1 == 'G' and c2 == 'R'):
	print('R')
elif c1 == 'B' and c2 == 'G' or (c1 == 'G' and c2 == 'B'):
	print('B')
elif c1 == c2:
	print(c1)


from sys import stdin
input = stdin.readline
(x, y) = input().split()
print('R' if x == 'R' or y == 'R' else 'B' if x == 'B' or y == 'B' else 'G')


(a, b) = input().split(' ')
if a == 'R' or b == 'R':
	print('R')
elif a == 'G' and b == 'G':
	print('G')
else:
	print('B')


t = {'R', 'B', 'G'}
(a, b) = map(str, input().split())
if a == 'R' and b == 'B':
	print('R')
elif a == 'B' and b == 'G':
	print('B')
elif a == 'R' and b == 'G':
	print('R')
elif a == 'B' and b == 'R':
	print('R')
elif a == 'G' and b == 'B':
	print('B')
elif a == 'G' and b == 'R':
	print('R')
elif a == 'R' and b == 'R':
	print('R')
elif a == 'B' and b == 'B':
	print('B')
else:
	print('G')


parents = input().strip()
if 'R' in parents and 'B' in parents:
	print('R')
elif 'R' in parents and 'G' in parents:
	print('R')
elif 'B' in parents and 'G' in parents:
	print('B')
elif 'R' in parents:
	print('R')
elif 'B' in parents:
	print('B')
else:
	print('G')


(M, N) = map(str, input().split())
if M == 'R' or N == 'R':
	print('R')
elif M == 'B' or N == 'B':
	print('B')
else:
	print('G')


(m, f) = input().split()
if m == 'R' or f == 'R':
	print('R')
elif m == 'B' or f == 'B':
	print('B')
else:
	print('G')


lst = [str(i) for i in input().strip().split()][0:2]
if lst[0] == 'R' and lst[1] == 'R':
	print(lst[0])
elif lst[0] == 'B' and lst[1] == 'B':
	print(lst[0])
elif lst[0] == 'G' and lst[1] == 'G':
	print(lst[0])
else:
	lst.sort(reverse=False)
	if lst[0] == 'B' and lst[1] == 'R':
		print(lst[1])
	elif lst[0] == 'B' and lst[1] == 'G':
		print(lst[0])
	elif lst[0] == 'G' and lst[1] == 'R':
		print(lst[1])


(a, b) = map(str, input().split())
lists = [a, b]
if 'R' in lists:
	print('R')
elif 'R' not in lists and 'B' in lists:
	print('B')
else:
	print('G')


(a, b) = map(str, input().split())
if a == 'R':
	f = 2
elif a == 'G':
	f = 0
elif a == 'B':
	f = 1
if b == 'R':
	h = 2
elif b == 'G':
	h = 0
elif b == 'B':
	h = 1
if f >= h:
	c = f
else:
	c = h
if c == 1:
	print('B')
elif c == 2:
	print('R')
elif c == 0:
	print('G')


values = {'R': 10, 'B': 5, 'G': 0}
antivalues = {10: 'R', 5: 'B', 0: 'G'}
(x, y) = map(str, input().split())
X = values[x]
Y = values[y]
lis = []
lis.append(X)
lis.append(Y)
ans = max(lis)
print(antivalues[ans])


(A, B) = map(str, input().split())
if A == 'R' or B == 'R':
	print('R')
elif A == 'B' or B == 'B':
	print('B')
else:
	print('G')