The last storm we had tore the flashing off my chimney. It was like it just ripped it off where it goes back into the chimney. What and how is the best way to repair it?

Thanks