import sys
input = sys.stdin.readline

p = [int(x) for x in input().split()] 
print(sum(p) - max(p))
 import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline 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 p = [int(x) for x in input().split()] p [int(x) for x in input().split()] print(sum(p) - max(p)) print sum(p) - max(p) sum(p) sum p max(p) max p input = sys.stdin.readline sys.stdin.readline input p = [int(x) for x in input().split()] [int(x) for x in input().split()] p
import sys
input = sys.stdin.readline

p = [int(x) for x in input().split()] 
print(sum(p) - max(p))

