If it is 39, then one monkey chooses 26, two monkeys choose 13, and three monkeys choose 7.
If it is 36, then one monkey chooses 24, two monkeys choose 12 and three monkeys choose 10.
If it is 33, then one monkey chooses 22, two monkeys choose 1 1, and three monkeys choose 13, which does not meet the meaning of the question.
Even less.
So the answer is 26 for one monkey, 13 for two monkeys, 7 for three monkeys or 24 for one monkey, 12 for two monkeys and 10 for three monkeys.