Gratitude in the bad times leads to happiness in the good times