Repeated Row Number Triangle
Given a positive integer n, print a triangle where line i contains the number i repeated i times.
Input
- One positive integer n.
Output
- Numbers on the same line are separated by exactly one space.
Constraints
- 1 <= n <= 50
Example
Input
5
Output
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Comments