from collections import Counter 
from collections import defaultdict
from collections import deque
import math
import itertools
import heapq
import sys
sys.setrecursionlimit(10**6)

#n=int(input())
#n,m=list(map(int,input().split()))
#a=list(map(int,input().split()))
input_list = lambda : list(map(int,input().split()))

a=input_list()
ans=float("inf")
for i in range(3):
    for j in range(i+1,3):
        ans=min(ans,a[i]+a[j])

print(ans) from collections import Counter from collections import defaultdict from collections import deque import math math import itertools itertools import heapq heapq import sys sys sys.setrecursionlimit(10**6) sys.setrecursionlimit sys setrecursionlimit 10**6 10 6 input_list = lambda : list(map(int,input().split())) input_list lambda : list(map(int,input().split())) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a=input_list() a input_list() input_list ans=float("inf") ans float("inf") float "inf" for i in range(3):
    for j in range(i+1,3):
        ans=min(ans,a[i]+a[j]) i range(3) range 3 for j in range(i+1,3):
        ans=min(ans,a[i]+a[j]) j range(i+1,3) range i+1 i 1 3 ans=min(ans,a[i]+a[j]) ans min(ans,a[i]+a[j]) min ans a[i]+a[j] a[i] a i a[j] a j print(ans) print ans ans=float("inf") float("inf") ans input_list = lambda : list(map(int,input().split())) lambda : list(map(int,input().split())) input_list ans=min(ans,a[i]+a[j]) min(ans,a[i]+a[j]) ans a=input_list() input_list() a
from collections import Counter 
from collections import defaultdict
from collections import deque
import math
import itertools
import heapq
import sys
sys.setrecursionlimit(10**6)

#n=int(input())
#n,m=list(map(int,input().split()))
#a=list(map(int,input().split()))
input_list = lambda : list(map(int,input().split()))

a=input_list()
ans=float("inf")
for i in range(3):
    for j in range(i+1,3):
        ans=min(ans,a[i]+a[j])

print(ans)
