Ten friends want to play a game. They must be divided into thee teams with three people in each team and one field judge. In how many ways can they do it?