Summer Internship
The sun is shining, and summer is in full swing. While most students are taking a break from the rigors of school—some heading to the beach, others visiting their grandmothers—our hero Vasylko is diligently preparing for the All-Ukrainian Programming Olympiad.
Vasylko understands that mastering the operation of exclusive disjunction (commonly known as xor) is crucial for achieving excellent results. He would appreciate your help in providing some practice material, specifically a graph showing the dependency of the values x n on x.
Input
The first line contains the numbers n and m (0 ≤ n ≤ 10000, 0 ≤ m ≤ 1000).
The following line contains m numbers where each x_i satisfies 0 ≤ x_i ≤ 10000.
Output
For each value x_i, output a column of height
,
consisting of x_i n characters 'X' followed by h-(x_i n) spaces.