Write a program to apply symbolic patterns on fabric. In odd-numbered rows, the pattern characters are printed consecutively, while in even-numbered rows, the characters are separated by spaces.
The only line of input contains first the pattern character , followed by three positive integers separated by spaces: the width of the pattern (odd, w < 80), its height (h \leq 40), and the repetition count (t \leq 40). In the sample output, spaces have been replaced with dots for clarity.
Print the required pattern.
Example 1
Example 2