Problem with IDE while using Python

Please read my complete question before sending a reply. I was solving this problem

When I provide MANUAL INPUT and run the program it works fine but if I don’t provide manual input then it is giving this error

Traceback (most recent call last):
File "prog.py", line 1, in <module>
EOFError: EOF when reading a line

The same thing was reported here but the question was closed without giving proper solution

Please provide a working solution for this. There is no problem with my code because it was working with manual input.

You’re trying to read from STDIN and that contains NULL because custom input option is not checked. Custom input option should be unchecked only when your program is not taking any input from STDIN.

How do I submit a solution then? It says this error whenever I submit a solution. I tried to put custom input and checked it before submitting. I unchecked and submit too. None of that is working