Town close to the slopes in spanish pyrenees

Hello everyone
Im planning to spend few months in the spanish pyrenees like catalonia or aragon at the end of the year.
As i never been there im not sure where to go.
So if anyone know a little town (as everything is overprice on the ski resorts) with an easy reach to the slopes (as i wont drive there) where i can rent a flat for few months, im open to any suggestions.
Many thanks
flo

Check out Jaca or Candachu (not 100% on the spelling).

Jaca is good with good buses to Astun or Candanchu, for further up in the same valley look at Canfranc Estacion - nearer the pistes. Also in the neighbouring Valle de Tena Sallent, Escarilla or Panticosa.