Ski race

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Winter has come to the town of NN, and it's time for the first cross-country skiing race. This year, participants registered through the Internet --- they entered their data, and each picked a number which had not yet been picked by other skiers. Due to the high number of participants, the organizers decided to split the race into several starts. To pick the lucky skiers for the first start, they've come up with a simple rule --- the skier with the number XX comes to the start if no other skier's number is divisible by XX.

Help the organizers write a program to define the numbers of those who will start first.

입력

The first line of the input file contains an integer KK --- the number of registered participants (1K1051 \leq K \leq 10^5). The second line contains KK space-separated integers A_iA\_i --- the numbers chosen by the participants at the registration (1A_i1071\leq A\_i\leq 10^7). All the numbers A_iA\_i are distinct.

출력

The output file must contain a single line containing the numbers of all participants starting first, in the ascending order. Numbers must be space-separated.