S=[] for i in range(3): S.append(input()) r=S.count('RED') b=S.count('BLUE') if(r>b): print('RED') else: print('BLUE')