Maslov indices of resonant tori.