import kotlin.math.* //import kotlin.text.* fun main() { val S = readLine()!! val sb = StringBuilder() S.forEach { if (it.isUpperCase()) { sb.append(it.toLowerCase()) } else { sb.append(it.toUpperCase()) } } println(sb) }