When Richard Nixon resigned his office who became the president