Scanf.scanf "%d %d %f" (fun x y r -> Printf.printf "%d\n" @@ abs x + abs y + int_of_float (ceil (sqrt 2. *. r)) )