a = map(int, input().split())
a = list(a)
a.sort()
print (a[0] + a[1]) a = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split a = list(a) a list(a) list a a.sort() a.sort a sort print (a[0] + a[1]) print a[0] + a[1] a[0] a 0 a[1] a 1 a = map(int, input().split()) map(int, input().split()) a a = list(a) list(a) a
a = map(int, input().split())
a = list(a)
a.sort()
print (a[0] + a[1])