시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 527 370 350 72.917%

문제

Al의 초콜릿 망고 회사는 방문자들이 2d 단지에 얼마나 많은 초콜릿 망고가 있는지 추측할 수 있는 웹 사이트를 갖고 있다. 방문자들은 1부터 99까지의 수를 추측한 후 "제출" 버튼을 누르는데, 안타깝게도 서버로부터 응답시간이 종종 길어져 방문자들이 이성을 잃은 나머지 "제출"을 연타하는 사태가 발생한다. 이게 우리가 해결해야 할 문제다.

ACM의 직원을 도와 연타된 중복을 걸러보자.

입력

각 줄마다 처음으로 정수 N(0 < N ≤ 25)이 주어진다.  그 다음 N개에 걸쳐 1부터 99 사이의 수가 주어진다.

마지막 줄에 입력의 끝을 알리는 0이 주어진다.

출력

각 케이스마다 한 줄씩 중복을 제거한 원래의 제출 상태를 출력한다.

각 줄의 마지막에는 한 칸을 띄고 '\$' 표시가 붙는다.

예제 입력 1

5 1 22 22 22 3
4 98 76 20 76
6 19 19 35 86 86 86
1 7
0

예제 출력 1

1 22 3 $
98 76 20 76 $
19 35 86 $
7 $
W3sicHJvYmxlbV9pZCI6IjQ1OTIiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM5MTFcdWJjZjVcdWM3NDQgXHVjNWM2XHVjNTYwXHVjNzkwIiwiZGVzY3JpcHRpb24iOiI8cD5BbFx1Yzc1OCBcdWNkMDhcdWNmNWNcdWI5YmYgXHViOWRkXHVhY2UwIFx1ZDY4Y1x1YzBhY1x1YjI5NCBcdWJjMjlcdWJiMzhcdWM3OTBcdWI0ZTRcdWM3NzQgMmQmbmJzcDtcdWIyZThcdWM5YzBcdWM1ZDAgXHVjNWJjXHViOWM4XHViMDk4IFx1YjljZVx1Yzc0MCBcdWNkMDhcdWNmNWNcdWI5YmYgXHViOWRkXHVhY2UwXHVhYzAwIFx1Yzc4OFx1YjI5NFx1YzljMCBcdWNkOTRcdWNlMjFcdWQ1NjAgXHVjMjE4IFx1Yzc4OFx1YjI5NCBc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