If something happens to both the president and vice president who becomes the next president?

the speaker of the house