gets *X,A=gets.split.map(&:to_i).sort p A+X.map{|n|n/2}.sum