How to invest in shares without demat account

How can one invest in shares without opening a demat account?,