CREATE TABLE table_name_4 (party VARCHAR(255), first_elected VARCHAR(255), district VARCHAR(255))
Which Party has a First elected smaller than 1878, and a District of south carolina 3?
    
SQL: SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"