Why did Russia leave world war 1?

A- they were not able to mobilize and get ready for war completely
B- me hey were beaten and went home
C- they were too far away from the fighting to participate
D- they had a revolution at home and the leadership changed and they wanted to quit fighting