A man used to have 39 cows but last year 25 of them died and he sold 6 of them. This year the number of the cows increased by 24 and the man bought 43 more. His friend gave him 8 cows as a gift. How many cows does the man have now? Let's think step by step and output the final answer after "####".
user
Last year he had 39 cows - 25 cows - 6 cows = <<39-25-6=8>>8 cows.
This year after the number of the cows has increased he has 8 cows + 24 cows = <<8+24=32>>32 cows.
After he bought more cows he now has 32 cows + 43 cows = <<32+43=75>>75 cows.
After his friend gave him cows he now has 75 cows + 8 cows = <<75+8=83>>83 cows.
#### 83
A man used to have 39 cows but last year 25 of them died and he sold 6 of them. This year the number of the cows increased by 24 and the man bought 43 more. His friend gave him 8 cows as a gift. How many cows does the man have now?
train