what is first elected that has republican party and a result of retired democratic gain?
1876.0