multiplication and division of three integers