import java.util.*;

public class Transactions {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        try {
            int n = sc.nextInt();
            ArrayList<Double> transactions = new ArrayList<>();

            for (int i = 0; i < n; i++) {
                transactions.add(sc.nextDouble());
            }

            double newTransaction = sc.nextDouble();
            transactions.add(newTransaction);

            for (double t : transactions) {
                System.out.print(t + " ");
            }
        } catch (Exception e) {
            System.out.println("Invalid input");
        }
    }
}