The company would be liable to pay DDT to the extent of accumulated profits. IT appears that the entire 50 lacs is accumulated profit and company will have to pay DDT @ 17.65%
The shareholders shall be liable to pay capital gain taxes for the amounts distributed in excess of amounts on which DDT has been paid by the company. It seems that company will pay DDT on the entire amount and hence you need not to pay any tax in personal capacity. There could be a capital loss situation.