In an election of sarpanch, there were two candidates. A total of 9791 votes were cast, of which the successful candidate received 116 votes. Additionally, the successful candidate received 5 votes in place of 4 votes. What is the total number of votes the other candidate received?