There are 2007 students, numbered from 1 to 2007. After they are arranged in a circle clockwise in the order of numbering, starting from the student numbered 1, they count in a clockwise order 1, 2, 1, 2... cyclically, reporting 1 The classmates who went out to leave, and the classmates who reported 2 stayed. What is the number of the last student left?
有2007个学生，编号为1～2007，他们按编号顺序顺时针排成一圈后，从编号为1的同学开始，按顺时针顺序1，2，1，2…循环地报数，报1的同学出列离开，报2的同学留下．则最后留下的同学的编号是多少．
<gadget id="calculator">2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2</gadget>
<output>1_024</output>

<gadget id="calculator">2_007 - 1_024</gadget>
<output>983</output>

<gadget id="calculator">983 * 2</gadget>
<output>1_966</output>

<result>1_966</result>