Education in Hungary is predominantly public, run by the Ministry of Education. Preschool-kindergarten education is compulsory and provided for all children between three and six years old, after which school attendance is also compulsory until the age of sixteen. Primary education usually lasts for eight years. Secondary education includes three traditional types of schools focused on different academic levels: the Gymnasium enrolls the most gifted children and prepares students for university studies; the secondary vocational schools for intermediate students lasts four years and the technical school prepares pupils for vocational education and the world of work. The system is partly flexible and bridges exist, graduates from a vocational school can achieve a two years programme to have access to vocational higher education for instance. The Trends in International Mathematics and Science Study (TIMSS) rated 13–14-year-old pupils in Hungary among the bests in the world for maths and science.