Gratitude can be a powerful prophylactic against self-loathing.