Last weekend brought huge audiences into the nation’s movie theaters to watch a talking teddy bear and male strippers.

Ted (directed by TV’s Seth McFarlane, producer of Family Guy, American Dad!, etc.) brought in an unexpectedly lucrative $54.1 million in U.S. ticket sales, while Magic Mike earned $39.2 million. Both movies are R-rated, and it is quite unusual for two such films to top the box office sales list.

The animated Brave and Tyler Perry’s Medea’s Witness Protection also did very well, finishing third and fourth with $34 million and $26.4 million, respectively.

What does it all mean? Ted and Mike seem to have done a good job of marketing to specific audiences—young males and 30-45-year-old females, respectively—on a scorching hot weekend when outdoor activities were of distinctly limited appeal. The two films seemed able to sop up nearly every possible audience member in their targeted demographic groups and ensure that they would drag along a few friends and/or family as well.

Both films also received strongly positive reviews, as reported by Rotten Tomatoes: TedMagic Mike.

Message to film producers? Probably something as simple as this: don’t try to be all things to all people.

Also: release your film before the real summer blockbusters hit the theaters. The latter point should be obvious, but Hollywood studios and distributors often seem to overlook it.