Characterization of rearrangement invariant spaces eith fixed points for the Hardy-Littlewood maximal operator