import time;
import sys;

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\n' % (nc, elapsed)

print '<html><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></body></html>'