Palindromic Poster
문제
Ryo and Kita are designing a new poster for Kessoku Band. After some furious brainstorming, they came to the conclusion that the poster should come in the form of a 2-D grid of lowercase English letters (i.e. a to z), with rows and columns.
Furthermore, it is known that Ryo and Kita both have peculiar tastes in palindromes. Ryo will only be satisfied with the poster if exactly of its rows are palindromes, and Kita will only be satisfied with the poster if exactly of its columns are palindromes. Can you design a poster that will satisfy both Ryo and Kita, or determine that it is impossible to do so?
Note: A string is considered a palindrome if it is the same when read forwards and backwards. For example, kayak and bb are palindromes, whereas guitar and live are not.
입력
The first and only line of input consists of space-separated integers , , , and .
출력
If it is impossible to design a poster that will satisfy both Ryo and Kita, output IMPOSSIBLE on a single line.
Otherwise, your output should contain lines, each consisting of lowercase English letters, representing your poster design. If there are multiple possible designs, output any of them.
예제
예제 1
4 5 1 2
union radar badge anime
예제 2
2 2 2 1
IMPOSSIBLE