"N/A" is not integer. It must throw NumberFormatException if you try to parse it to integer. We can keep the code which is throwing exception into try block.
try{
int i = Integer.parseInt(input);
}catch(NumberFormatException ex){ // handle your exception
...
}