int main() {
    int n, i;
    // Read the number of existing transaction amounts
    if (scanf("%d", &n) != 1) {
        printf("Invalid Input\n");
        return 1; // Indicate error
    }

    // Check constraints for n
    if (n < 0 || n > 1000) {
        printf("Invalid Input\n");
        return 1;
    }

    // Declare an array to hold existing and new transaction amounts
    // Using a fixed size array, ensure it's large enough for max n + 1
    float arr[1001]; 

    // Read existing transaction amounts
    for (i = 0; i < n; i++) {
        if (scanf("%f", &arr[i]) != 1) {
            printf("Invalid Input\n");
            return 1;
        }
    }

    float newValue;
    // Read the new transaction amount
    if (scanf("%f", &newValue) != 1) {
        printf("Invalid Input\n");
        return 1;
    }

    // Append the new value to the end of the array
    // As per the note, use arr = newValue;
    arr = newValue;

    // Print the updated list of transaction amounts
    for (i = 0; i <= n; i++) {
        printf("%.2f", arr[i]); // Print with 2 decimal places
        if (i < n) { // Add space between numbers, but not after the last one
            printf(" ");
        }
    }
    printf("\n"); // Newline at the end of output

    return 0; // Indicate successful execution
}