Riek Machar and Salva Kiir signed the agreement at a ceremony in Sudan