A = [int(x) for x in input().split()]
m = max(A)
A.remove(m)
print(sum(A)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A = [int(x) for x in input().split()] A [int(x) for x in input().split()] m = max(A) m max(A) max A A.remove(m) A.remove A remove m print(sum(A)) print sum(A) sum A A = [int(x) for x in input().split()] [int(x) for x in input().split()] A m = max(A) max(A) m
A = [int(x) for x in input().split()]
m = max(A)
A.remove(m)
print(sum(A))