import sys
import time
for i in range(10):
sys.stdout.write("\r" + str(i))
sys.stdout.flush()
time.sleep(0.5)
aW1wb3J0IHN5cwppbXBvcnQgdGltZQoKZm9yIGkgaW4gcmFuZ2UoMTApOgogICAgc3lzLnN0ZG91dC53cml0ZSgiXHIiICsgc3RyKGkpKQogICAgc3lzLnN0ZG91dC5mbHVzaCgpCiAgICB0aW1lLnNsZWVwKDAuNSk=