All problems

Stacking Two Rows Into a Table

mediumPythonNumPynp.vstack

Fenwick Retail's till exports one line of hourly takings per trading day, and the two lines for Monday and Tuesday arrive as separate files. The analyst comparing the two days wants them in a single table, one day per row and one trading hour per column, because everything she does next — a total per hour, a total per day, a chart — is easier when the days sit in one block instead of two loose lines. Both days cover the same hours, so the two lines are the same length.

Task: Print the two days as a two-row table.

Input

Two lines. The first holds Monday's hourly takings separated by single spaces; the second holds Tuesday's, and it holds just as many values.

Output

Two lines. The first is Monday's row, the second is Tuesday's, each holding that day's takings separated by single spaces in the order given, written as plain integers.

Example:

Input:
10 20 30
15 25 35

Output:
10 20 30
15 25 35

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…