fun main() { val builder = StringBuilder() val n = readInputLine() builder.appendln( when(n) { "1" -> -1 "4" -> -1 else -> { if (n.takeLast(2).toInt() % 4 == 0) 1 else -1 } } ) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }