#CF1877E. Autosynthesis
Autosynthesis
Chaneka writes down an array of positive integer elements. Initially, all elements are not circled. In one operation, Chaneka can circle an element. It is possible to circle the same element more than once.
After doing all operations, Chaneka makes a sequence consisting of all uncircled elements of following the order of their indices.
Chaneka also makes another sequence such that its length is equal to the number of operations performed and is the index of the element that is circled in the -th operation.
Chaneka wants to do several operations such that sequence is equal to sequence . Help her achieve this, or report if it is impossible! Note that if there are multiple solutions, you can print any of them.