import time
start = time.time()
try:
seconds = float(open("seconds.txt").read())
start -= seconds
except FileNotFoundError:
pass
seconds_passed = 0
end = 666 * 60
while seconds_passed < end:
seconds_passed = time.time() - start
open("seconds.txt", "w+").write(str(seconds_passed))
print(int(end - seconds_passed) // 60, "minutes left", end='\r')
time.sleep(1)
print("The end. Submit the wad!")