There are two women participants in a badminton tournament. The number of games the men played between themselves exceeds by 12 the number of games they played with women. If each player played one game with each other, then the number of men in the tournament was