Adding sum-of-min-and-max files