fun main(args: Array) { p339() } fun p339() { val s = readLine()!! val answer = s.map { if (it in 'a'..'z') it.toUpperCase() else it.toLowerCase() }.joinToString("") println(answer) }