725. 1D to 2D

0

Easy

Given a 1D integer array of size N, create a 2D integer matrix with dimensions X rows and Y columns.

Input Format

Three integers N, X, and Y followed by N space-separated integers.

Output Format

X rows of Y integers each.

Example

Input

4 2 2 1 2 3 4

Output

1 2 3 4

Constraints

0 < N < 50000 0 < Arr[i] < 10000 0 < X, Y < 40000 N is the product of X and Y
Loading...

View Submissions

Console