class UserMainCode(object):
    def solve(cls, input1, input2):
        N, P, X = input1, input2


if __name__ == '__main__':
    data = [2, 3, 4, [[1, 1, 1], [1, 1, 2], [1, 2, 3], [2, 1, 2]]]
    # print(solve(*data))
