Every time the parrot got a sentence or a tune right, the hunter would give him a chilly. But every time the parrot got something wrong, he would poke it with a stick. Thus, the parrot had to learn everything correctly.