Fault-tolerant process of input not a number