Joshua brings ricecakes to work, and john immediately eats a third o them, plus two thirds o a ricecake. Mark then eats a fourth of the remaining ricecake, plus one half of a ricecake. Miguel then eats half of the remaining ricecake. By the time ana arrives there are only three ricecake left for her. How many ricecakes were there originally?