import java.util.Arrays;
import java.util.Scanner;

public class Main {


public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int t = scanner.nextInt();
    String[] array = new String[t];
    for (int i = 0; i < t; ++i) {
        array[i] = scanner.next();
    }
    Arrays.sort(array);
    for (String text : array) {System.out.print(text+" "); }
}

}