Good pain vs Bad pain!!

Do you know, What is Good pain & Bad pain? And how can you avoid injuries while training?