Who would become president if obama and biden fell?

The speaker of the house (Nancy Pelosi) is next in line. Scary thought.