Even for the robust error handling code , I'm facing runtime error

Describe your issue

Although the code is able to handle all the errors , the platform is throwing a runtime error, with an error message ```
EOFError: EOF when reading a line


### Screenshot
![image|690x292](upload://zLIosClALcvLHNUWVHKqgyGGED4.png)
![image|690x482](upload://hFqnuDHWlMP8RUrNgGamEYr5bhg.png)


### Additional info
Problem statement: "Take discount or Not"