#include <stdio.h>

int main() {
    int n, i;
    float transactions;  // Make sure it's an array!
    float new_transaction;

    // Read the number of transactions
    scanf("%d", &n);

    // Read existing transaction amounts
    for (i = 0; i < n; i++) {
        scanf("%f", &transactions[i]);
    }

    // Read the new transaction amount
    scanf("%f", &new_transaction);

    // Append the new transaction at the end of the array
    transactions[n] = new_transaction;
    n++; // Increment transaction count

    // Print all transaction amounts
    for (i = 0; i < n; i++) {
        printf("%.2f ", transactions[i]);
    }

    return 0;
}