Its food is found both on the ground and in trees and has almost all known types of plant and animal sources , like acorns and beech mast , weed seeds , grain , fruits and other berries , peanuts , bread , meat , small invertebrates of many types , scraps in town parks , bird-table food and rarely eggs and nestlings . Its food is sought both on the ground and in trees and includes virtually all known types of plant and animal sources , such as acorns and beech mast , weed seeds , grain , fruits and other berries , peanuts , bread , meat , small invertebrates of many types , scraps in town parks , bird-table food and rarely eggs and nestlings .