main = getContents >>= print . circle . map read . words circle [x,y] = floor $ 2 * sqrt (x^2 + y^2) + 1