main = getLine >>= print . ufo . map read . words ufo [x,y,r] = ceiling (fromIntegral r * sqrt 2.0) + abs x + abs y