The fourth grade students of Guangming Primary School participated in extracurricular activities. There were 4 groups for drawing and dancing. There were 13 people in each group for painting and 27 people for each group of dancing. How many students in the fourth grade participated in extracurricular activities?
光明小学四年级同学参加课外活动，画画和跳舞的各4组，画画每组13人，跳舞的每组27人，问四年级共有多少学生参加课外活动？
<gadget id="calculator">13 + 27</gadget>
<output>40</output>

<gadget id="calculator">40 * 4</gadget>
<output>160</output>

<result>160</result>