I need help..

I have been suffering from severe depression on and off for the last few months.. I haven’t brushed my teeth or hair in days so tonight when I was finally feeling better, I shaved for the first time in months and tried to brush my hair.. it’s so full of knots that I burst into tears and gave up. I ripped out a good portion of my hair in the process... I don’t know what to do...