// editor1
#include <stdio.h>
#include <stdlib.h> // For atof function

int main() {
    int n;
    // Read the number of existing transactions
    if (scanf("%d", &n) != 1) {
        printf("Invalid input\n");
        return 1;
    }

    // Declare an array to store transaction amounts.
    // We need space for 'n' existing amounts plus 1 for the new amount.
    double arr[n + 1];

    // Read the existing transaction amounts
    for (int i = 0; i < n; i++) {
        if (scanf("%lf", &arr[i]) != 1) {
            printf("Invalid input\n");
            return 1;
        }
    }

    double newValue;
    // Read the new transaction amount
    if (scanf("%lf", &newValue) != 1) {
        printf("Invalid input\n");
        return 1;
    }

    // Append the new value to the end of the array as per the note
    arr = newValue;

    // Print the updated list of transaction amounts
    for (int i = 0; i <= n; i++) {
        printf("%.2f", arr[i]); // Print with 2 decimal places for consistency with sample output
        if (i < n) {
            printf(" "); // Print space between numbers
        }
    }
    printf("\n"); // Newline at the end of output

    return 0;
}