Switzerland: usually 4 years after 9 years of compulsory schooling (primary and secondary I); it is also possible to attend a so-called Langzeitgymnasium which lasts 6 years, following a six-year primary schooling; the Gymnasium ends with Matura at the age of 18/19. Ukraine: 8 years, starting after 4 years of primary school. United Kingdom: historically, grammar schools have been the English equivalent of the gymnasium, selecting pupils on the basis of academic ability (usually through the 11+ entrance examination in year 6, at the age of 10 or 11) and educating them with the assumption that they would go on to study at a university; such schools were largely phased out from 1965 under the Wilson and Heath governments and less than 5% of pupils now attend the remaining 146 grammar schools.