This is an interactive problem.
John has an array of n mysterious integers. He has an access to a magic box that can combine two integers into one. Let x∘y be the result of combining two integers, x and y, with this magic box. After a lot of experiments, John has noticed that the magic box has the following properties:
John has q cousins, and each of them likes all the integers in his array except some k of them. John wants to give gifts to all his cousins, so he wants to give each cousin the combination of all his integers except the k this cousin doesn't like.
John likes his cousins, but his magic box is old and worn off because of his intense experiments. He is willing to use the box at most 4(n+q+q⋅k) times. Help him get all the required combinations!
In each test, the rules for the magic box are fixed and don't depend on your queries. Different rules are used for different tests. It is guaranteed that the magic box satisfies the conditions from the problem statement.
In the sample test, the operation performed by the magic box is assumed to be bitwise OR.