Please read the following table in Markdown format and then answer the question according to the table. Table cells in one row are seperated by '|', and different rows are seperated by '
'.

Table:
| District | Incumbent | Party | First elected | Result |
| --- | --- | --- | --- | --- |
| California 1 | William Rosecrans | Democratic | 1880 | Re-elected |
| California 2 | Horace F. Page | Republican | 1872 | Lost re-election Democratic gain |
| California 3 | Campbell P. Berry | Democratic | 1879 | Retired Democratic hold |
| California 4 | Romualdo Pacheco | Republican | 1876 | Retired Democratic gain |
| California at-large 2 seats on a general ticket | None (New seat) | None (New seat) | None (New seat) | New seat Democratic gain |
Question:
What is First elected that has republican Party and a Result of retired democratic gain?
Answer:
1876.0