#入力:[n1,n2,...nk](int:整数配列)
def input_array():
	return list(map(int,input().split()))

a=input_array()

ALL=sum(a)
MAX=max(a)

print(ALL-MAX) def input_array():
	return list(map(int,input().split())) input_array return list(map(int,input().split())) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a=input_array() a input_array() input_array ALL=sum(a) ALL sum(a) sum a MAX=max(a) MAX max(a) max a print(ALL-MAX) print ALL-MAX ALL MAX MAX=max(a) max(a) MAX def input_array():
	return list(map(int,input().split())) def input_array():
	return list(map(int,input().split())) input_array ALL=sum(a) sum(a) ALL a=input_array() input_array() a
#入力:[n1,n2,...nk](int:整数配列)
def input_array():
	return list(map(int,input().split()))

a=input_array()

ALL=sum(a)
MAX=max(a)

print(ALL-MAX)