def get_bits(byte_size, number):
    """Returns last byte_size*8 bits from number."""
    res = []
    for i in range(byte_size * 8):
        res.append(str(number % 2))
        number //= 2
    res.reverse()
    return res