Run error in all testcases

My code pass sample input but on submitting it shows run error…
how to solve
code link:https://ide.codingblocks.com/s/190177

as you can see in the problem statement, the numbers can be long enough (of length 100). so while taking input, be careful. you can’t take input through nextInt() or nextLong(). it should be only next() i.e. take input as string only. why are you taking it as int and converting into string.

Thanks

please resolve it and rate it if satisfied.
Thanks
…