This smart parrot knows what to do to get his treat