Remove unnecessary import.
Subtraction and decrement should cause infinite loops on invalid input.