import math, strscans let (_, x, y) = stdin.readAll.scanTuple"$f $f" result = succ int 2 * sqrt x * x + y * y echo result