The Beatles wave goodbye to San Francisco