The division of labor between and within countries is driven by two fundamental forces, comparative advantage and increasing returns. We set up a simple Ricardian model with a Marshallian input sharing mechanism to study their interplay. The key insight that emerges is that the interaction...