Input (grade 10): Kennedy defeated then Vice President and Republican candidate Richard Nixon in the 1960 U.S. presidential election, one of the closest in American history.
Output (grade 10): Kennedy, a Democrat, beat his Republican party opponent Richard Nixon in the 1960 presidential election.