0-sum and 1-sum flows in regular graphs