With the new babies, there are 14 + 4 = <<14+4=18>>18 caterpillars.

With the big caterpillars leaving, there are 18 - 8 = <<18-8=10>>10 caterpillars on the tree.

# Answer

10
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
There are 14 caterpillars on the tree. 4 more eggs hatch, and baby caterpillars climb out to munch on the leaves.  8 fat caterpillars leave the tree to cocoon themselves to be butterflies.  How many caterpillars are left on the tree?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
10
There are 14 caterpillars on the tree. 4 more eggs hatch, and baby caterpillars climb out to munch on the leaves.  8 fat caterpillars leave the tree to cocoon themselves to be butterflies.  How many caterpillars are left on the tree?
train