#include <stdio.h>

int main() {
    int n, i;
    float transactions, 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
    transactions[n] = new_transaction;
    n++; // Increase the count

    // Print the updated list
    for (i = 0; i < n; i++) {
        printf("%.2f ",transactions[i]);
    }
    printf("\n");

    return 0;
}