# equisum1-q16
# Sections 1-5, Q.16, p.13 and p.247
# timeit.bat equisum1.py == 148 msec

import time

start = time.time()
count = 0
for a in range(10):
  for b in range(10):
    for c in range(10):
      for d in range(10):
        for e in range(10):
          for f in range(10):
            if a+b+c == d+e+f:
              count += 1
print(count, f"in {time.time()-start:.4f} secs")
