17 people left, draw lots, one bye.
The remaining nine people, draw lots, bye-bye.
The remaining five people, then draw lots, bye-bye.
The remaining three will play round robin and fight. According to the number of wins, the top three are decided.
Or draw a map. The principle is the same.