You have one bag of cat food weighing 9kg, two bags of dog food weighing 500g each, and three packets of hamster treats weighing 15000mg each.

How much animal food do you have in total, in grams?