SAN FRANCISCO (AP) — MAD, the long-running satirical magazine that influenced everyone from “Weird Al” Yankovic to the writers of “The Simpsons,” will be leaving newsstands after its August issue.