procedure main() while a:=reads(,4)&write((read()^2/a+a+2)/4) end