import threading, time, sys

killed = False

def x():
  global killed
  while not killed:
  	print("1")
  	time.sleep(0.5)

print('Type "exit" to exit =)')
threading.Thread(target=x).start()

sys.stdin.readline()
killed = True

#while True:
#	s = sys.stdin.readline().strip()
#	print(s, s == "exit")
#	if s == "exit":
#		killed = True
#		break