#51Easy
Each number as many times as itself
Time: 1 s · Memory: 256 MB
- Nested loops
Statement
You are given two natural numbers and (). Print every number from to on its own line, repeated times.
Input format
A single line with two integers and ().
Output format
lines: each contains one number repeated times, separated by spaces.
Examples
Input
2 4
Output
2 2 3 3 3 4 4 4 4
Input
1 1
Output
1
Note
The outer loop goes over the numbers (from to ), the inner loop over the repetitions ( times). In the first example: 2 2, 3 3 3, 4 4 4 4.
