Parrot: A Training Pipeline Enhances Both Program CoT and Natural Language CoT for Reasoning