n = gets.to_i x = gets.chomp.split.map(&:to_i) ave = x.sum / x.length for a in x p (50 + (a - ave) / 2).round end