There are 7 people standing in a row to take pictures, A and B are adjacent to each other, and C and D are adjacent to each other. How many different ways are there in total?
有7人站成一排照相，其中甲乙相邻且丙丁相邻，共有多少种不问的排法？
<gadget id="calculator">2 * 2</gadget>
<output>4</output>

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

<result>480</result>