In the Hershey and Chase experiment, 35S was used to label the protein coat of the bacteriophage, while 32P was used to label its DNA. This experiment demonstrated that DNA, not protein, is the genetic material, as only the 32P-labeled DNA entered the bacterial cells, while the 35S-labeled protein remained outside.