def contain(x1, y1, w1, h1, x2, y2, w2, h2):
    """
    check if the first rectangle fully contains the second one
    """
    return x1 <= x2 and y1 <= y2 and x2 + w2 <= x1 + w1 and y2 + h2 <= y1 + h1