def compute():
    N = 24
    RADIUS_SQUARED = (2 ** ((2 * N) - 2))

    def compressed_length(xstart, xend, ystart, yend):
        if (((xstart * xstart) + (ystart * ystart)) > RADIUS_SQUARED):
            return 2
        elif ((((xend - 1) * (xend - 1)) + ((yend - 1) * (yend - 1))) <= RADIUS_SQUARED):
            return 2
        else:
            xmid = ((xstart + xend) >> 1)
            ymid = ((ystart + yend) >> 1)
            return ((((1 + compressed_length(xstart, xmid, ymid, yend)) + compressed_length(xmid, xend, ymid, yend)) + compressed_length(xstart, xmid, ystart, ymid)) + compressed_length(xmid, xend, ystart, ymid))
    temp = (2 ** (N - 1))
    return str(((((1 + compressed_length(0, temp, 0, temp)) + compressed_length(0, temp, 1, (temp + 1))) + compressed_length(1, (temp + 1), 0, temp)) + compressed_length(1, (temp + 1), 1, (temp + 1))))
def compute():
    N = 24
    RADIUS_SQUARED = (2 ** ((2 * N) - 2))

    def compressed_length(xstart, xend, ystart, yend):
        if (((xstart * xstart) + (ystart * ystart)) > RADIUS_SQUARED):
            return 2
        elif ((((xend - 1) * (xend - 1)) + ((yend - 1) * (yend - 1))) <= RADIUS_SQUARED):
            return 2
        else:
            xmid = ((xstart + xend) >> 1)
            ymid = ((ystart + yend) >> 1)
            return ((((1 + compressed_length(xstart, xmid, ymid, yend)) + compressed_length(xmid, xend, ymid, yend)) + compressed_length(xstart, xmid, ystart, ymid)) + compressed_length(xmid, xend, ystart, ymid))
    temp = (2 ** (N - 1))
    return str(((((1 + compressed_length(0, temp, 0, temp)) + compressed_length(0, temp, 1, (temp + 1))) + compressed_length(1, (temp + 1), 0, temp)) + compressed_length(1, (temp + 1), 1, (temp + 1))))