Write a program that reads a sequence of snakes, and prints them one after another.
Input consists of a sequence of snake definitions, each one in a line. Each definitions starts with two natural numbers: is the column where starts the snake; is the number of times that changes of sense (from right to left or from left to right). After numbers come indicating in which rows changes of sense. Finally, a natural comes indicating the row where has the eyes.
The rows and the columns start in 1. Assume that , and that the snake never goes out of the left side. Each snake starts moving to the right.
Print the snakes as it is shown in the instance, separating them with a space.
Input
1 1 3 4 3 2 4 6 9
Output
\ \
\ \
/ /
(o o)
\_/
|
^
\ \
\ \
\ \
/ /
/ /
\ \
\ \
\ \
(o o)
\_/
|
^