Depression and anxiety among the elderly and children during the pandemic