The nextInt() method called on line 18 is reading a non-numeric String. It wants all numeric digits it can convert to an int.
What did you type in?
What order of input does your program expect?...