Arrange the following events related to disintegration of the Soviet Union in chronological order:
(A) Boris Yeltsin is appointed as the head of the Communist Party in Moscow.
(B) Soviet Union declares that the Warsaw Pact members are free to decide their own future.
(C) Boris Yeltsin becomes the President of Russia.
(D) The Commonwealth of Independent States is established.