Hillary Rodham Clinton visited The Tonight Show Starring Jimmy Fallon, and the show’s female writers were so impressed with the former presidential candidate that they couldn’t wait to give her thank-you notes.

One by one, the female writers came out and read aloud cards thanking Clinton for several things. One writer named Caroline said, “Thank you, Hillary, for always sticking to the issues even as people criticized you for superficial things like your hair, your wardrobe, and your appearance. You showed girls everywhere that politics isn’t a popularity contest, because if it were, you would have won by about 3 million votes.”

Miley Cyrus was the musical guest, and she also got in on the thank-you card action. Fighting back tears, Cyrus said, “Thank you, Hillary, for being a constant beacon of strength, hope, and determination for me and millions of other young women. You’ve been a role model and an inspiration, and the voice of reason in uncertain times. I could go on and on, but I’d like to get right to the point. Can I give you a hug?”

Clinton gave Cyrus a hug, and then she penned a thank-you note to all women, saying, “Thank you, Miley, The Tonight Show writers, and all of the women and young girls out there. You are smart, strong, and deserving of every opportunity. Together, we’ve made our voices heard, we’ve done great things, and we’ve come a long way. But as Miley would say, we can’t stop, and we won’t stop.”

The Tonight Show Starring Jimmy Fallon airs weeknights at 11:35 p.m. on NBC. Watch clips and full episodes of The Tonight Show free on Yahoo View.

Watch as Miley Cyrus and Adam Sandler perform a song dedicated to the Las Vegas victims:





Read more from Yahoo Entertainment:

Tell us what you think! Hit us up on Twitter, Facebook, or Instagram — or leave your comments below. And check out our host, Kylie Mar, on Twitter, Facebook, or Instagram.