Macy has bought 812 bananas. Jake has bought 83% of Macy's bananas. Karl bought three times the amount of Jake's amount at a local grocery store. Gary then proceeded to buy 29% of Karl's bananas. How much bananas does Gary have in total?