Which of these is punctuated correctly?
O "Oh, hang Smiley and his afflicted cow!" I muttered good-naturedly, and bidding the old gentleman good-day, I departed.
Oh, hang Smiley and his afflicted cow! I muttered good-naturedly, and bidding the old gentleman good-day, I departed.
"Oh, hang Smiley and his afflicted cow! I muttered good-naturedly," and bidding the old gentleman good-day. I departed.
"Oh, hang Smiley and his afflicted cow! I muttered good-naturedly, and bidding the old gentleman good-day, I departed."