import time
a = time.time()
for i in range(1, 5000):
for j in range(1, 5000):
z = i/j
print(time.time() - a)
aW1wb3J0IHRpbWUKYSA9IHRpbWUudGltZSgpCmZvciBpIGluIHJhbmdlKDEsIDUwMDApOgogICAgZm9yIGogaW4gcmFuZ2UoMSwgNTAwMCk6CiAgICAgICAgeiA9IGkvagpwcmludCh0aW1lLnRpbWUoKSAtIGEp