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

int main() {
    
    // 1. 入力情報取得.
    string S1, S2, S3;
    cin >> S1 >> S2 >> S3;
    
    // 2. 風船をカウント.
    int rAns = 0;
    int bAns = 0;
    if(S1 == "RED")  rAns++;
    if(S1 == "BLUE") bAns++;
    if(S2 == "RED")  rAns++;
    if(S2 == "BLUE") bAns++;
    if(S3 == "RED")  rAns++;
    if(S3 == "BLUE") bAns++;
    
    // 3. 後処理.
    cout << ((rAns < bAns) ? "BLUE" : "RED") << endl;
    return 0;
    
}