Some number of chocolates are gifted to four friends Kavya, Rupak, Saurabh & Indu.First Indu came & took 16 chocolates from the gift pack. Then Kavya came, she divided the rest into four equal parts & kept one part with her. Then Saurabh came, he again divided it into four parts & kept one part with him then Rupak came & he divided the rest into four equal parts & distributed it among his four friend(including him). Rupak got 9 chocolates. How many chocolates were there in total??