I have fixed coordinate handling to pass corner cases.
Now, could you accept publications?
PS: 40pts for solving this task is missing from my points history