S1 = gets.chomp S2 = gets.chomp S3 = gets.chomp if [S1, S2, S3].count('RED') >= 2 puts 'RED' else puts 'BLUE' end