import strutils, sequtils proc main() = let N = stdin.readLine.parseInt if N == 1: echo 101 return 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()