def reverse_bits(n):
    """
    Reverses the bits in an integer.
    :param n: an integer value.
    :return: finds the integer value of a reversed integer bit.
    """
    return int(bin(n)[::-1][0:-2], 2)