n = [int(n) for n in input().split()]
n.remove(max(n))
print(sum(n)) 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 n = [int(n) for n in input().split()] n [int(n) for n in input().split()] n.remove(max(n)) n.remove n remove max(n) max n print(sum(n)) print sum(n) sum n n = [int(n) for n in input().split()] [int(n) for n in input().split()] n
n = [int(n) for n in input().split()]
n.remove(max(n))
print(sum(n))