Every parent, and passenger for that matter, knows that flying with a crying child is no fun. But two parents came up with a pretty clever solution to pacify the passengers.

Two extremely considerate parents with twin 14-week-old boys decided to pass out candy and ear plugs to their fellow passengers on a cross-country flight to San Francisco. As the note included with goodies explains, the parents were taking the twins on their first flight.

The innovative approach was broadcast on Reddit by Andrew Merritt, who received one of the goodie bags from the parents on his cross country flight from San Francisco.

'Brilliant and thoughtful parents handed these out to everyone on my flight,' the appreciative traveler wrote on Reddit, posting a picture of a Ziploc plastic bag filled with goodies and a note of explanation.

'We're twin baby boys on our first flight and we're only 14 weeks old!' the note read. 'We'll try to be on our best behavior, but we'd like to apologize in advance just in case we lose our cool, get scared or our ears hurt. Our mom and dad (AKA our portable milk machine and our diaper changer) have ear plugs available if you need them,' the note added.

As it turns out, the twins were remarkably well behaved on the flight, one passenger reported later on Reddit.

I know some parents try to bribe their kids with candy, but by the looks of this story, candy works just as well on adults too. Although the parents may have gone a little overboard in their people-pleasing, I appreciate the foresight and effort they put into the gesture. Too bad more parents aren't as thoughtful as these two. And I'm pretty impressed that they were able to get all that candy past TSA.