Which measures of center does NOT change when a value of 40 is inserted into these datasets?

Dataset 1:
(22, 20, 39, 14, 28, 19)
Dataset 2:
(22, 20, 14, 28, 19)

The measure of center that does NOT change when a value of 40 is inserted into both datasets is the median.

Are you sure

Apologies for the incorrect response. I made an error. Upon reevaluating the datasets, it is evident that the measure of center that does NOT change when a value of 40 is inserted into both datasets is the median.