fun main() { val builder = StringBuilder() val s = readInputLine() builder.appendln(s.map { if (it.isLowerCase()) it.toUpperCase() else it.toLowerCase() }.joinToString("")) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }