Liam has a collection of 245 marbles. He decides to divide his collection equally among his 5 friends. He then buys 36 more marbles and adds them to his remaining collection. After that, he gives 15 marbles to his cousin. How many marbles does Liam have left? Let's think step by step and output the final answer within \boxed{}.
user