Floyd's triangle fills rows with consecutive numbers: row 1 has 1 number, row 2 has 2 numbers, and the counting never restarts.
1
2 3
4 5 6
…
Given N, print the first N rows.
Input Format
A single integer N.
Output Format
Print N lines. Line i has i consecutive numbers separated by single spaces.
Constraints
• 1 ≤ N ≤ 30
Examples
Example 1
Input
4
Output
1
2 3
4 5 6
7 8 9 10
Explanation Numbers 1 to 10 filled row by row.
Example 2
Explanation Only 1.
Example 3
Input
3
Output
1
2 3
4 5 6
Explanation 1 / 2 3 / 4 5 6.
Acceptance
—
Accepted
0
Submissions
0