import strutils, sequtils proc main() = let N = stdin.readLine.parseInt let A = stdin.readLine.split.map(parseInt) var z = 0 for x in 0..100: var s = A.foldl(a+b) + x if (s div N).toFloat == s / N: z += 1 echo z when isMainModule: main()