fun main() { val n = readLine()!!.takeLast(2).toInt() println(if (n % 4 == 2) -1 else 1) }