In an election, the winning candidate got 1,23,12,505 votes which are 7,842 votes more then the losing candidate. How many votes did the losing candidate got?