import sys


samplerate = 8000
tone = 440
lenght = samplerate/tone

inc = 2

y = 0
w = 0
for x in range(0,samplerate,1):
	if y >= lenght:
		y = 0
	if y >= lenght/2:
		inc = -2
	else:
		inc = 2
	w += inc
	z = 1 - 2*float(w)/lenght	
	sys.stdout.write(str(z))
	sys.stdout.write(" ")
	y+=1
sys.stdout.write("\n")
sys.stdout.close()
		