Xiaoqiang, Xiaowa and other six students took pictures, standing in three rows, with 1 person in the first row, 2 people in the second row, and 3 people in the third row. Little Frog and Xiaoqiang have an awkward fight and don't want to be in the same row, how many ways can they stand?
小强、小蛙等六个同学照相，站成三排，第一排1人，第二排2人，第三排3人．小蛙和小强闹了别扭，不愿意在同一排，则有多少种站法？
<gadget id="calculator">5 * 4 * 3 * 2 * 1</gadget>
<output>120</output>

<gadget id="calculator">1 + 3</gadget>
<output>4</output>

<gadget id="calculator">4 * 3 * 2 * 1</gadget>
<output>24</output>

<gadget id="calculator">4 * 24 * 2</gadget>
<output>192</output>

<gadget id="calculator">1 + 2 + 1</gadget>
<output>4</output>

<gadget id="calculator">4 * 24</gadget>
<output>96</output>

<gadget id="calculator">1 + 2</gadget>
<output>3</output>

<gadget id="calculator">3 * 24</gadget>
<output>72</output>

<gadget id="calculator">120 + 192 + 96 + 96 + 72</gadget>
<output>576</output>

<result>576</result>