"""
This program inputs the names and marks of student and prints the names of students with the second lowest marks
"""

arr = [7, 69, 2, 221, 8974]

min = sum(arr[:4])
max = sum(arr[1:5])
print(min)
print(max)