Welcome to Basement Art Academy!
Today, we will be learning how to draw mountains. You will draw mountains, the of which has a height of .
Mountains consist only of ^
, which are separated by spaces.
An example of a mountain would be:
^
^ ^
^ ^ ^
When drawing multiple mountains, you should separate them by a space.
^
^ ^ ^
^ ^ ^ ^ ^
In the example shown above, there is a mountain of next to a mountain of .
Impress
with your artistic abilities!Input Specification
The first line of input will contain , the number of mountains to draw. The next line will contain space separated integers, .
Constraints
For all subtasks:
Subtask 1 [10%]
Subtask 2 [90%]
No additional constraints.
Output Specification
Output exactly lines, following correct formatting. Trailing white spaces will be accepted.
Sample Input
2
3 2
Sample Output
^
^ ^ ^
^ ^ ^ ^ ^
Comments