number_of_penguins = input() # не меньше 1 и не больше 9
print(' _~_ ' * int(number_of_penguins))
print(' (o o) ' * int(number_of_penguins))
print(' / V \\ ' * int(number_of_penguins))
print('/( _ )\\ ' * int(number_of_penguins))
print(' ^^ ^^ ' * int(number_of_penguins))