AddMultiply and CostOfDancing