Now, IntInput returns the number of needed material when the user enter a too large number