fun judge(N: Int): Boolean { if (N % 400 == 0) { return true } if (N % 100 == 0) { return false } if (N % 4 == 0) { return true } return false } fun main(args: Array) { val N = readLine()!!.toInt() val ans = if (judge(N)) "Yes" else "No" println(ans) }