import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
public class TSORT {
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
Integer count = scanner.nextInt();
Set<Integer> arrayList = new TreeSet<>();
for (Integer i = 0 ; i < count ; i++)
{
Integer x = scanner.nextInt();
arrayList.add(x);
}
for (Integer example : arrayList)
{
System.out.println(example);
}
}
}