import sys


samplerate = 8000
tone = 440
lenght = samplerate/tone

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