In an election there were only two candidates. 20% of the voters did not cast their votes and 1000 votes were declared invalid. The winner, by obtaining 70% of the total valid votes, defeated his rival by 1200 votes. The total number of voters in the election was ________.
1
8000
2
6000
3
7000
4
5000