Two ranchers agree that sheep are worth 245. When one rancher owes the other money, he pays the debt in sheep or cows, with "change" received in the form of cows or sheep as necessary. What is the amount of the smallest positive debt that can be resolved in this way?