Simple derivation of magnetic space groups (I)