fun main() { val n = readLine()!!.toInt() val a = readLine()!!.split(" ").map{it.toInt()} val b = readLine()!!.split(" ").map{it.toInt()} println(((0 until n).map{a[it]==b[it]} as MutableList).apply{add(true)}.zipWithNext().filter{it.second && it.first!=it.second}.size) }