Ocean Waves on Rocks and Surf on Sandy Beach