import sequtils, strutils let n, a, b = stdin.readLine.split.map parseInt echo: zip(a, b).filterIt(it[0] <= it[1]).len