pasta = Array.new(3)
pasta[0] = 1389
pasta[1] = 1795
pasta[2] = 1232
drink = Array.new(2)
drink[0] = 380
drink[1] = 190
x = pasta[0]
y = drink[0]
a = 0
b = 0
while a<=2 do
       if x>pasta[a]
              x = pasta[a]
       else 
              x = x
       end
a = a+1
end
while b<=1 do
       if y>drink[b]
              y = drink[b]
       else 
              y = y
       end
b = b+1
end
puts #{x}+#{y}-50