Start the app (green flag)
Click the cat to begin/re-start
When prompted, enter a WHOLE positive number (e.g. 5, 509, 99999...) and press Enter or click the input arrow.
See the result.
Notes & Credits
Comments are included in the code to explain how it works.