One day, Anwei Zhao robbed a bank and got N jewels, each jewel had a value. Anwei Zhao took a bag to pack his jewels but the bag was not big enough so he could only pack M jewels. AnWei Zhao was greedy so he wanted to earn more, he told you he had a habit, jewels of the same value should be considered only once. Can you tell him how to pack?
You should output M numbers in a line for each test case. Notice there is a space between these numbers.