THis is solution of problm 133