# frozen_string_literal: true def solve a = X.sum / N X.map { |x| (50 - Rational(a - x, 2)).floor } end N = gets.to_i X = gets.split.map(&:to_i) puts solve