Print the paths whose sum of values equals given sum

Print the paths whose sum of values equals given sum