Input in 'simple input' problem

I think my code for the problem is correct but it’s not working for multiple testcases…please help me figure out the problem…It is working fine for all the custom test cases which I enter…but fails to run when I submit the answer