Program is working with positive numbers