I am in a masters program (mathematics) and I have written a paper with my supervisor. My supervisor taught me the whole general procedure of finding papers to start with, methods of research and writing papers etc. I have learned so much from him but what I have learned has all been about how to do research. In contrast, the mathematics content of the paper is not within his area of expertise, and he has done almost nothing! Now he wants me to put his name as a the first author on our joint paper.
1- If I reject his demand, I will get a low grade for my thesis because he is a jerk, and thus my chance of being accepted for a good university will be reduced dramatically. I live a country where no one can object to their teacher's grading!
2- If I comply with his demand I will be a second author, and again, my chances of being accepted at a good university will be reduced dramatically.
Added after @Allure's comment: There are similar questions asked on this site but they discuss such things as whether the advisor's demands are right or not, and what actions should be taken. As I stated, I live in country where there can't be a powerful objection against a bullying professor, so my question "What should I do?" still remains because of my special situation.