#include <stdio.h>
#include <stdlib.h> // Required for exit() or similar error handling

int main() {
    int n;

    // Read the number of existing transactions
    if (scanf("%d", &n) != 1) {
        printf("Invalid input\n");
        return 1; // Indicate an error
    }

    // Check constraints on n
    if (n < 0 || n > 1000) {
        printf("Invalid input\n");
        return 1;
    }

    // Declare an array to store the transaction amounts. 
    // n+1 size to accommodate the new transaction.
    float transactions[n + 1];

    // Read the existing transaction amounts
    for (int i = 0; i < n; i++) {
        if (scanf("%f", &transactions[i]) != 1) {
            printf("Invalid input\n");
            return 1;
        }
    }

    // Read the new transaction amount and append it to the end of the array
    if (scanf("%f", &transactions) != 1) {
        printf("Invalid input\n");
        return 1;
    }

    // Print the updated list of transaction amounts, separated by spaces
    for (int i = 0; i <= n; i++) {
        printf("%.2f", transactions[i]); // Print float with 2 decimal places
        if (i < n) {
            printf(" "); // Add a space after each number except the last one
        }
    }
    printf("\n"); // Print a newline character at the end

    return 0; // Indicate successful execution
}