Man undergoes surgery to relieve 36-hour erection