def site_bit(number, N, site):
    """
    0/1 bit of the i-th atom in the base of N atoms chain from left-side
    :param number: state base
    :param N: length of atoms chain
    :param site: index of the atom in the atoms chain
    :return: 0/1
    """
    return number >> (N-site) & 1