R9 -- Found At Last error

I am executing the above link for R9 – Found At Last problem. It shows a run error for Testcse #3.

What is the problem?

@yashomar95,
This is an error with the input string. Submit your code using scanner. Since it is a number format exception, there’s a " " char after the input. So, please use scanner class to take input.