const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const S = input.split('\n').join(''); const a = S.match(/RED/g) ? S.match(/RED/g).length : 0; const b = S.match(/BLUE/g) ? S.match(/BLUE/g).length : 0; console.log(a > b ? 'RED' : 'BLUE');