let () = let soi = string_of_int in Scanf.scanf "%d\n" @@ fun n -> let xrr = Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun d -> d in let a = (Array.fold_left (+) 0 xrr) / n in let makeD x = 50 - (a - x) / 2 in let ans = Array.map makeD xrr in Array.iter (fun x -> print_endline (soi x)) ans