Is the president or the vice president sworn in first and why?

vice president because if the president is shot he is president