<gh_stars>100-1000
N, M = map(int,input().split()) # More than 6 lines of code will result in 0 score. Blank lines are not counted.
for i in range(1, N, 2): 
    print((i*".|.").center(3*N, "-"))
print ("-WELCOME-".center(3*N, "-"))
for i in range(N - 2, -1, -2): 
    print((i*".|.").center(3*N, "-"))

N, M = map(int,input().split()) # More than 6 lines of code will result in 0 score. Blank lines are not counted.
for i in range(1, N, 2): 
    print((i*".|.").center(3*N, "-"))
print ("-WELCOME-".center(3*N, "-"))
for i in range(N - 2, -1, -2): 
    print((i*".|.").center(3*N, "-"))
# More than 6 lines of code will result in 0 score. Blank lines are not counted.