def test():
    a = test()
    yield 1
    while True:
        yield next(a)

a = test()
for i in range(10):
    print(next(a))
