[Edit: I think I found my problem. I think that I need to change how I parse the input data to account for extra spaces.]
This code runs perfectly on my machine.
I've included sys.exit(0).
I get a NZEC every time! I have no idea what is wrong. Can someone please help?
Here is my code:
https://www.spoj.pl/files/src/2089297/