check = list(input().split())
check.sort()
print(int(check[0]) + int(check[1])) check = list(input().split()) check list(input().split()) list input().split() ().split () input split check.sort() check.sort check sort print(int(check[0]) + int(check[1])) print int(check[0]) + int(check[1]) int(check[0]) int check[0] check 0 int(check[1]) int check[1] check 1 check = list(input().split()) list(input().split()) check
check = list(input().split())
check.sort()
print(int(check[0]) + int(check[1]))