# penguin = '''
#    _~_
#   (o o)
#  /  V  \\
# /(  _  )\\
#   ^^ ^^'''
hat = '   _~_    '
eyes = '  (o o)   '
nose = ' /  V  \\  '
hands = '/(  _  )\\ '
feet = '  ^^ ^^   '

string = input()
number = int(string)
print(hat * number)
print(eyes * number)
print(nose * number)
print(hands * number)
print(feet * number)
