For the strategy makers at Pakistan’s foreign office, the key challenge will be to find a way to keep both China and the US in its camp