Surgery

Management of flail chest with respiratory failure is: