def sum(n):
	sum = 0	
	output = ""
	for item in n:
		for i in str(item):
			output = output + i + " + "
			
			temp = int(i)
			sum = sum + temp
	output = output + " = " + str(sum)
	return output
print sum([10, 20, 3, 5, 6, 23])