N = gets.to_i X = gets.split.map(&:to_i) a = Rational(X.sum, N) puts X.map { |x| 50 - Rational(a - x, 2).floor }