In an election a candidate who gets 84% of the votes is elected by a majority of 476 votes. What is the total number of votes polled ?