require "2012-yo-t1-in1"
x = a[0]
y = a[4]
while b<=2 do
       if x > a[b] 
                 x = a[b]
       else 
                 x = x
       end
b = b+1
end
while c>=3 && c<=4 do
       if y> a[c]
                 y = a[c]
       else 
                y = y
       end
c = c+1
end
puts "#{x}+#{y}-50"