print all paths which sum to a given value