A man was sunbathing naked at the beach and for the sake of civility, and to keep it from getting sunburned, he had a hat over his privates. 

A woman walks past and says, snickering: ‘If you were a gentleman you’d lift your hat.’

He raised an eyebrow and replied: ‘If you weren’t so ugly it would have lifted itself.’