import sequtils, stats, strutils let n = parseInt readLine stdin xs = stdin.readLine.split.map parseInt var rs: RunningStat rs.push xs proc d(a, x: float): int = int 50 - (a - x) / 2 for x in xs: echo d(rs.mean, float x)