Most countries don't have this advanced classes thing.

UK, Norway, Sweden, Germany and France are the systems I'm aware of and they all have different levels of maths you can study at high school. I'd be surprised to learn of any country the offers no options or specialisation before University.