import strscans let (_, x, y) = stdin.readAll.scanTuple"$i $i" a = min(x, y) - 4 b = max(x, y) + 4 echo if a >= 0: a else: b