def boxFullyContained(mainBox, smallBox):
    """Checks if the 'smallBox' is fully contained inside 'mainBox'."""
    for i in range(3):
        if not (
            smallBox[2 * i] >= mainBox[2 * i]
            and smallBox[2 * i] <= mainBox[2 * i + 1]
        ):
            return False
        if not (
            smallBox[2 * i + 1] >= mainBox[2 * i]
            and smallBox[2 * i + 1] <= mainBox[2 * i + 1]
        ):
            return False
    return True