If both the president and the vice president are unable to fulfill their duties, who takes over as president?

AAttorney general.
BSpeaker of the House.
CSecretary of state.
DPresident pro tempore of the Senate