class BinInsert:
    def binInsert(self, n, m, j, i):
        return n | (m << j)