Fyodor Dostoyevsky said this quote

It's precisely in despair that you find the most intense pleasure, especially if you are already powerfully conscious of the hopelessness of your predicament.