###
### Author: Xin Li
### Description: you will print out
### ASCII-art of the Bodiam castle.

width = int(input('castle width:\n'))
print(' ')
print(' '*width+'   .-.-.')
print('[-]'+' '*width+'|-.-|'+' '*width+'[-]')
print('| |'+'_'*width+'| H |'+'_'*width+'| |')
print('| |'+' '*width+'| H |'+' '*width+'| |')
print('| |'+' '*width+'| H |'+' '*width+'| |')
print('|_|'+'_'*width+'||^||'+'_'*width+'|_|')
