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))
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))