Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
In Fred the Farmer's barn, there were 100 horses, 29 sheep, and 9 chickens. Brian bought half of the animals and sold them at the market. Jeremy then gifted Fred an additional 37 goats. If exactly half of the animals in the barn are male animals, how many male animals are there in the barn?

### Response:
 Brian alinunua nusu ya wanyama 100+29+9=<<100+29+9=138>>138 katika banda la Fred.
Alinunua 138/2=<<138/2=69>>69 wanyama, hivyo kulikuwa na 138-69=<<138-69=69>>69 waliobaki.
Baada ya Jeremy kumpa Fred mbuzi 37, kulikuwa na wanyama 69+37=106 katika banda.
Hivyo, 106/2=<<106/2=53>>53 ni wanyama wa kiume.