iterations as input

limited from 1 to 30 000