from statistics import median

print(median([1, 2, 3, 7, 8, 10]))

print(median([10, 7, 2, 1, 3, 8]))
