Average Of The First Invariant Factor Of The Reductions Of Abelian Varieties Of Cm Type