eof file error in code chef ide - python 3

i need some help here.
I am trying to solve a problem FAKEBS but when run in codechef IDE it gives “eof when reading line”.
But when i provide custom input(same as test input) to the ide it properly executes

Please share the code and problem link, that makes it easier to help you. Also, did you try to google your problem? I am getting a lot of stackoverflow links just by searching for “python3 EOF error”.

Does your code give same results on IDLE? Are you sure that the input is correct? are you adding EOF at the end of input?