line =gets.split(' ').map(&:to_i)
p = line[0]
r = line[1]
q = line[2]
sai = 300
for i in 0..2 do
  for j in 0..2 do
    aho = line[i]+line[j]
    if i == j then 
      break
    end
    if aho <= sai
      sai = aho
    end
    end
  end
puts sai