Pricing with markups under horizontal and vertical competition