import math
A=40
f=.2
l=100
t=2
rng = range(-A,A+1)
rng.reverse()
for i in rng:
phrase=''
for ii in range(l):
if int(A*math.cos(f*ii))-t<i<int(A*math.cos(f*ii))+t:
phrase+='~'
else:
phrase+=' '
print(phrase)
aW1wb3J0IG1hdGgKQT00MApmPS4yCmw9MTAwCnQ9MgpybmcgPSByYW5nZSgtQSxBKzEpCnJuZy5yZXZlcnNlKCkKZm9yIGkgaW4gcm5nOgogICAgcGhyYXNlPScnCiAgICBmb3IgaWkgaW4gcmFuZ2UobCk6CiAgICAgICAgaWYgaW50KEEqbWF0aC5jb3MoZippaSkpLXQ8aTxpbnQoQSptYXRoLmNvcyhmKmlpKSkrdDoKICAgICAgICAgICAgcGhyYXNlKz0nficKICAgICAgICBlbHNlOgogICAgICAgICAgICBwaHJhc2UrPScgJwogICAgcHJpbnQocGhyYXNlKQ==