What do you have to do to become president of Egypt?

Affect a coup d'etat, and/or depose the president, or have the president incapacitated/assassinated.