An optimal co-reinsurance strategy