fun main() { val N = readLine()!!.toInt() println(2 - (N%2)) }