Rite Aid enjoys fourth-consecutive profitable quarter