fun main() { val colors = listOf("Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet") val n = readLine()!!.toInt() val had = IntArray(7) readLine()!!.split(" ").forEach { had[colors.indexOf(it)]++ } readLine()!!.split(" ").forEach { had[colors.indexOf(it)]-- } for((index, value) in colors.withIndex()){ if(had[index] == 1) println(value) } }