CREATE TABLE table_39219 ("District" TEXT, "Incumbent" TEXT, "Party" TEXT, "First elected" FLOAT, "Result" TEXT)

Which Party has a First elected smaller than 1878, and a District of south carolina 3?
SELECT "Party" FROM table_39219 WHERE "First elected" < '1878' AND "District" = 'south carolina 3'
SELECT "Party" FROM "table_39219" WHERE "District" = 'south carolina 3' AND "First elected" < '1878'