from math import *

print '%!PS-Adobe-3.0 EPSF'
n = 1000
scale = 200
print '.75 setlinewidth'
print 306, 396 - scale * .5, 'moveto', 0, scale, 'rlineto stroke'
print 306 - scale, 396, 'moveto', 2 * scale, 0, 'rlineto stroke'
print '1.5 setlinewidth'
cmd = 'moveto'
for j in range(n):
    th = (2 * pi * j) / n
    if (cos(2 * th) >= 0):
	r = sqrt(cos(2 * th))
	x = r * cos(th)
	y = r * sin(th)
	print 306 + scale * x, 396 + scale * y, cmd
	cmd = 'lineto'
print 'closepath stroke showpage'
