The answer would be: parietal; frontal
Somatosensory cortex is located in the parietal lobe, adjacent to the somatomotor cortex that located in front of it in the frontal lobe. They are divided by the central sulcus so that somatosensory frequently called postcentral gyrus and somatomotor called precentral gyrus.