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.

# Answer

83
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
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