fun main(arr:Array) { val komaCount = readLine()!!.toInt() val komaList = readLine()!!.split(" ").map { it.toLong() } val ans = Math.abs(komaList.count { it % 2 == 0L } - komaList.count{it % 2 != 0L}) println(ans) }