(CNN) -- The seniors of Marjory Stoneman Douglas High School were greeted by a surprise guest speaker at their graduation on Sunday .
"Today you're graduating from high school," said Jimmy Fallon, host of NBC's "The Tonight Show," offering students a little bit of comic relief and a hopeful message just months after they survived a high-profile school shooting.
"You should feel incredibly proud of yourselves. That doesn't mean you should rest on your laurels -- or your yannys ."
JIMMY FALLON CAME FROM NEW YORK TO MSD GRADUATION! Thank you Jimmy!! pic.twitter.com/029rwpVzOk
— lostprxphet (@Jakobi_Johnson) June 3, 2018
"Some of you will grow up to hear yanny, some of you will grow up to hear laurel, but the most important thing for you to know is that neither of these things will matter by the end of the summer."
"Here's what will matter: you, the class of 2018, will have graduated. And you won't be classmates anymore. You'll be adults who Facebook search each other at two in the morning for the next ten years."
Fallon offered words of wisdom to the graduating seniors to help them in the years ahead as they go on to college and build lives outside of Stoneman Douglas.
"The first thing is this: when something feels hard, remember that it gets better. Choose to move forward. Don't let anything stop you."
And he noted that he met some of the students at the March for Our Lives earlier this year, calling it "an amazing day."
"Thank you for your courage and your bravery," he said.
™ & © 2018 Cable News Network, Inc., a Time Warner Company. All rights reserved.