Which one of the following stage preceeds mitosis during cell cycle?

Which one of the following stage preceeds mitosis during cell cycle?

A. G1 phase
B. S phase
C. G2 phase
D. M phase