Checking for sums of collected numbers