Just change type of input field where you
enter numbers. You most likely are using
"string" type instead of "int" or "expression"
which will suit in your case.
@marlo If you check append, previous file result won't be replaced, you probably have action, which doesn't have append checked. If you are 100% sure, that append is checked everywhere upload your project.