Instruct: Which Party has a First elected smaller than 1878, and a District of south carolina 3?
Output: SELECT Party FROM table WHERE First elected < 1878 AND District = south carolina 3