Definition: Given a disfluent sentence, modify the sentence to it to its equivalent fluent form, preserving the meaning of the sentence.
Input: What problems did the Yuan dynasty have near its end no rather beginning?

What problems did the Yuan dynasty have near its beginning?