gets;X=gets.split.map &:to_i;p X.map{|n|n/2}.sum+-~X.max/2