Medium
Chunks
Read a list and a size k. Split the list into chunks of k elements (the last may be shorter) and print each chunk on its own line.
Input
A line of integers, then k ≥ 1.
Output
One line per chunk.
Sample 1
Input
1 2 3 4 5 6 7 3
Output
1 2 3 4 5 6 7
Sample 2
Input
1 2 5
Output
1 2
Output appears here