A bakery sells cookies in packs of 12. If John buys 5 packs of cookies and then gives 8 cookies to his friend, how many cookies does he have left? Let's think step by step and output the final answer within \boxed{}.
user