Education is free at all levels, although higher education is restricted to citizens only. The school system is composed of elementary, intermediate, and secondary schools. A large part of the curriculum at all levels is devoted to Islam, and, at the secondary level, students are able to follow either a religious or a technical track. The rate of literacy is 97.1% among males and is about 92.71% among females (2017). Classes are segregated by sex.