All the students in class 1 of the third grade went to plant trees. On the first day, 413 trees were planted. On the second day, they planted twice as many trees as on the first day. Half of the day, how many trees were planted on the fourth day?
三年级1班全体学生去种树，第一天种413棵，第二天种的是第一天的2倍，第三天比第二天少种62棵，第四天种的只有第三天的一半，第四天种了多少棵树？
<gadget id="calculator">413 * 2</gadget>
<output>826</output>

<gadget id="calculator">826 - 62</gadget>
<output>764</output>

<gadget id="calculator">764 / 2</gadget>
<output>382</output>

<result>382</result>