Two farmers agree that chickens are worth 180. When one farmer owes the other money, he pays the debt in chickens or ducks, with "change" received in the form of ducks or chickens as necessary. What is the amount of the smallest positive debt that can be resolved in this way?