 The vice president and half of the cabinet have to agree that the president is incapable of carrying out their daily duties. The president can then override them and stay in power, at which point the Congress can act. And if there's a two-thirds vote of the Senate and the House of Representatives, that will override the president, who overrode his own staff, and it will kick the president out of the office.