def find_components(value):
    """ Extract the three values which have been combined to
    form the given output.
    """
    r1 = value >> 20                  # 11 most significant bits
    r2 = (2**10 - 1) & (value >> 10)  # 10 middle bits
    r3 = (2**10 - 1) & value          # 10 least significant bits
    return r1, r2, r3