#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int r=0,b=0;
	string bl="BLUE"s,re="RED"s;
	for(int i=0;i<3;++i){
		string s; cin>>s;
		if(s==bl)++b;
		else ++r;
	}
	cout<<(r>b?re:bl)<<"\n"s;
}