You could store the sum of all of the values and then also store the sum of the squares of all of the values. Between the two, you can recreate both missing numbers via algebra.