Fortune‘s Most Powerful Women know a thing or two about career success. The 50 businesswomen on the 2017 list have climbed up the ranks of corporates in a wide range of industries—including tech, energy, defense, and consumer goods—to C-level roles.

Here’s the best career advice they have for women who want to follow in their footsteps:

1. Be your authentic self

Karen Lynch, president, Aetna

“When I was being considered for a senior role, I was told on an evaluation to avoid wearing pink because it made me look too ‘girlish’… Indirectly, I was told my femininity was a barrier. Because of my outward appearance, they couldn’t see my internal strength. Regardless, I fought back and got the job. Ever since then, I’ve made it a point to wear pink.”

Leanne Caret, president and CEO of Defense, Space & Security, Boeing

“No matter where you go, don’t lose who you are.”

2. Confidence is key

Kathleen Murphy, president, Personal Investing, Fidelity Investments

“Just go for it. Too often, women have a confidence gap that makes them pause and slow down while men dive in and learn as they go. Just go for it!”

Susan Wojcicki, CEO, YouTube, Google/Alphabet

“Speak up. Don’t be afraid to say what’s on your mind or ask for what you want.”

3. Be open to opportunities

Mary Barra, chairman and CEO, General Motors:

“Don’t cut off your career branches too early. Don’t step away from your career based on what ‘might’ happen.”

Sheryl Sandberg, COO, Facebook

“Always take on new challenges—even if you at not sure you are completely ready.”

4. Surround yourself with good people

Ruth Porat, SVP and CFO, Google/Alphabet

“Make sure you’re working for someone confident who is willing to take risks on you, gives you stretch opportunities, and is there to back you if things get tough. And do the same for people on your team.”

Marianne Lake, CFO, J.P. Morgan Chase

“You are only ever as good as the team you build, so be a talent magnet and surround yourself with the best and the brightest.”

5. Find the right balance for you

Margaret Keane, president and CEO, Synchrony Financial

“Life happens—and the conflicting demands of work and home often change your ‘original’ path. Lateral movement, or even moves to smaller positions, can differentiate skills and experience in ways that eventually lead to bigger roles.”

Amy Hood, EVP and CFO, Microsoft

“You won’t likely have the same plan in a few years that you have today. Life and priorities change—and so will your choices.”