def solve(): rCnt = 0 bCnt = 0 for i in range(3): s = input() if (s == 'RED'): rCnt += 1 elif (s == 'BLUE'): bCnt += 1 if (rCnt > bCnt): print("RED") else: print("BLUE") solve()