A farmer bought $749$ sheep. He sold $700$ of them for the price paid for the $749$ sheep. The remaining $49$ sheep were sold at the same price per head as the other $700$. Based on the cost, what is the percent gain on the entire transaction? Provide your answer as a number.

Let's think step by step and output the final answer within \boxed{}.
user