you have to have your resident permit done and then you must get the exit permit before leaving the country. The exit permit is valid for 7 days from the date it is obtained