x=3
counter=0
iterations=0
for s in range(1,10):
for d in range(10):
for j in range(10):
iterations+=1
if s+d+j==x:
counter+=1
print(counter,": ",s,d,j,sep='')
print("iterations=",iterations)
eD0zCmNvdW50ZXI9MAppdGVyYXRpb25zPTAKZm9yIHMgaW4gcmFuZ2UoMSwxMCk6Cglmb3IgZCBpbiByYW5nZSgxMCk6CgkJZm9yIGogaW4gcmFuZ2UoMTApOgoJCQlpdGVyYXRpb25zKz0xCgkJCWlmIHMrZCtqPT14OgoJCQkJY291bnRlcis9MQoJCQkJcHJpbnQoY291bnRlciwiOiAiLHMsZCxqLHNlcD0nJykKcHJpbnQoIml0ZXJhdGlvbnM9IixpdGVyYXRpb25zKQ==