There will always be aspects of any field—or, in cases such as STEM, entire arrays of fields—that are male-dominated. It has both to do with the stereotypical portrayal of the position itself and the types of people who are generally interested in such fields. In other words, there’s not a whole lot you can do about it. Luckily, there are ways to go beyond coping in such a situation—you can most certainly thrive.

Here are 8 tips for women who want to thrive in a male-dominated workplace:

1. Say Yes, but Also, Say No.

This is the unfortunate dichotomy of life as a woman in a male-dominated workplace. In order to continue to get opportunities, you have to say yes when those opportunities come your way. You also have to be aware of where to draw the line, however. If you always say yes, you’ll overload yourself, and that could make the company or firm look bad. Do you know who aren’t overloading themselves? The men in your office. So take what you can handle with a can-do attitude, but say nowhen you are swamped.

2. Speak Up.

On the same vein, if you want a project, you have to make that known. Not everything (in fact, likely very few things) will be handed to you, so you have to let your boss know when you are free to take on a project that interests you. How else will they know you want it if you don’t tell them!

3. Go Out for That Beer After Work.

Are you interested in bonding with the men in your office? When they invite you out for a beer, go!

Men bond in atmospheres like bars, where they can talk about non-work-related topics and let off some steam. If you don’t like beer, go anyway, and make a joke about it. You’ll still get to talk to them about their personal lives, which is the definition of bonding. What if you’re not invited? Send out your own happy hour invitation, and invite them. They’ll likely join you.

4. Know the Line Between A Joke and Harassment.

Another way that men bond with each other is by telling off-color jokes and stories. Why does it have to be that way? Who knows. If you’re easily offended, try to see the humor in the situation.

It’s likely true that the joke or story was completely inappropriate, but it’s just as likely that the man telling it already knows that, so you don’t have to point it out to him. Be careful, though—there is a fine line between off-color jokes and harassment, and you need to know that line and know when you do, in fact, need to say something.

5. Pay Attention to Your Clothing Choices.

Men are visual. There is an entire feminist movement centered around the fact that women aren’t dressing for men, and that is 100% true. But the workplace is a different ball game. You should be paying careful attention to your clothing choices and making sure that you’re not toeing any dress code lines.

6. Know Your Strengths, and Utilize Them.

Women have different strengths than men. There are always stereotypes that are true. If you’re a woman working with mostly men, you’re likely more in touch with your feelings than they are. Should there be a case where your boss needs to know about some feelings (such as how the interns are feeling), use that to your advantage.

7. Don’t Act Like Anyone’s Assistant.

What if your boss asks you to get him coffee, or a donut, or plum sauce? This is when you kindly but firmly point out that you are no one’s assistant—if the men in the office aren’t going to get these things, you shouldn’t be either.

8. Know that It Will Be Challenging Every Day.

Going against gender norms—or any norms, for that matter—is neither easy nor fun, most of the time. But it’s a challenge that you have already proven you’re up for just by trying to enter your male-dominated field of choice. Don’t give up—you can do it!

Is it fair that you, as a woman, have to work so hard just to succeed in the day-to-day of a male-dominated workplace? No, it’s not. But it is the reality that we live in. Your hard work and effort to change the stereotypes of a field may have a profound effect on the future, so don’t lose hope! Your hard work will likely pay off in the long run.