Education is compulsory for children between the ages of 7 and 16 years. Primary education lasts for six years followed by seven years of secondary education, four years in the first stage followed by three years in the second stage. In 1996, the Comoros had 327 primary schools, with a total of 78,527 pupils and 1,508 teachers. Schools at the general secondary level in 1996 had 21,192 pupils and 591 teachers. As of 1999, 55% of primary-school-age children were enrolled in school. The pupil-teacher ratio at the primary level was 35 to 1 in the same year. There are two technical schools and a teacher-training college near Moroni. The higher-level institutions had 348 students in 1996. Projected adult illiteracy rates for the year 2000 stand at 43.8% (males, 36.5%; females, 50.9%). In the mid-1990s, more than 20% of the central government budget was allocated to education.