from itertools import product
solutions = [(j, b) for j, b in product(range(0, 5+1), range(0, 8+1)) if j < b]
formatString = "{0:^6}|{1:^12}|{2:^12}"
print(formatString.format("nr", "jabłek", "brzoskwiń"))
for i, (j, b) in enumerate(solutions, 1):
	print(formatString.format(i, j, b))