This program takes the number of integers as input, followed by the list of integers, and then it adjusts the values by subtracting each value from the maximum.
def adjust_values(lst):
# Find the maximum value in the list
max_value = max(lst)
# Adjust each value by subtracting it from the maximum
adjusted_values = [max_value - value for value in lst]
return adjusted_values
def main():
# Input: Number of integers
num_integers = int(input())
# Input: List of integers
integer_list = [int(input()) for _ in range(num_integers)]
# Adjust values and print the result
result = adjust_values(integer_list)
for value in result:
print(value)
if __name__ == "__main__":
main()