NZEC Error in JAVA

Every time i try to submit a solution in Java, it shows NZEC Error. When i put try, catch it shows Wrong Answer. PLease Help.

Check your Logic !! Check for overflows.