The elementary school in Bavaria takes four years to accomplish.
Then, the children change to a secondary school. There are three options:
A specific grade average is necessary in order to switch to a Realschule or Gymnasium. Children with lower scores can take part in a 3-day trial class and a written and an oral exam. If the student passes these exams with the minimum score of 4, he/she can go to the desired school.