import math
A=8
f=3
l=20
for i in range(l):
    print(int(A*math.cos(f*i))*' '+A*' '+'~')