arr = [int(x) for x in input().split()]

list.sort(arr)
min = arr[0]
max = arr[len(arr)-1]

li = []

arr = [int(x) for x in input().split()]

list.sort(arr)
min = arr[0]
max = arr[len(arr)-1]

li = []
