import java.util.Scanner data class Count(var red: Int, var blue: Int) class No516() { val input = Scanner(System. `in`) val count = Count(0, 0) fun colorCount(): String { for (i in 0..2) { val color = input.next() if (color == "RED") count.red++ else count.blue++ } if (count.red < count.blue) return "BLUE" else return "RED" } } fun main(args: Array) { val no516 = No516() println(no516.colorCount()) }