In both the men's and the women's competition eight teams participated of the tournament. The teams were divided in two groups of four teams each. The teams played against each other once within their groups. The two best placed teams of each group advanced to the semifinals. The teams which finished in the third and fourth place of their groups competed for the fifth and seventh places, playing the third-placed team of a group against the fourth-placed team of the other group. The winners competed for the fifth place and the losers competed for the seventh place. The semifinal winners competed for the gold medal while the losers competed for the bronze medal.