ans = [int(n) for n in input().split()]
print(sum(ans)-max(ans)) int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n ans = [int(n) for n in input().split()] ans [int(n) for n in input().split()] print(sum(ans)-max(ans)) print sum(ans)-max(ans) sum(ans) sum ans max(ans) max ans ans = [int(n) for n in input().split()] [int(n) for n in input().split()] ans
ans = [int(n) for n in input().split()]
print(sum(ans)-max(ans))