3. (8 points) Jia, Yi, Bing, and Ding won the top 4 places in the school (no ties), and they said:
Jia: “I am neither first nor second”; Yi said: “My rank is adjacent to Bing”;
Bing: “I am neither second nor third”; Ding: “My rank is adjacent to Yi”. Now we know that Jia, Yi, Bing, and Ding respectively obtained the $A, B, C, D$ places, and they are all honest students. So the four-digit number $\overrightarrow{\mathrm{ABCD}}=$ . $\qquad$