116 people participated in a singles tennis tournament of knockout format. The players are paired up in the first round, winners of the first round are paired in the second round, and so on till the final is played between two players. If after any round, the number of players is odd, one player is given a bye (he skips that round and plays the next round with the winners). Find the total number of matches played in the tournament.