If the president can no longer serve, who becomes president?

If the president can no longer serve, who becomes president?