solver::Int->Int->Int->Int
solver a b c =     if a<=b && b<=c then a+b
              else if a<=c && c<=b then a+c
              else if b<=a && a<=c then b+a
              else if b<=c && c<=a then b+c
              else if c<=a && a<=b then c+a
              else c+b

main::IO()
main=do
  d<-getLine
  let a:b:c:[]= map read (words d)
  print (solver a b c)               
