At the academy, he met Abdel Hakim Amer and Anwar Sadat, both of whom became important aides during his presidency