Given N integers, you should sort them in increasing order. For all repetitive integers, you should remove the redundant integers and only keep one of them.
There are multiple test cases. Each case have two lines. The first line is an integer N and there are N integers in the second line which are separated by one blank character.
All integers are positive and no larger than 1000.
For each output case, you should first output the number of remained integers in the first line and all remainded integers in the second line which are separated by one blank character.
5 1 3 2 2 4
4 1 2 3 4