Two candidates ran for class president. The candidate that won received 80% of the 340 total votes. How many votes did the winning candidate receive?