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