A solution to the 'zero sum' D-line problems