import time;

def show(nc):
  s = ""
  start = time.time()
  for i in range(0, nc): s = s + "."
  elapsed = time.time() - start
  print('<tr><td>%d<td>%.3f' % (nc, elapsed))

print('<html>')
print('<head>')
print('<link rel="stylesheet" type="text/css" href="../teaching.css">')
print('</head><body><table border><tr><td>Length<td>Seconds')
show(1000)
show(10000)
show(100000)
show(1000000)
print('</table>')
print('</body>')
print('</html>')