Parsing works, but algo doesn't worh with example:
Don't know why, parsing seems to do it right.
2 5.51200e+02 9.96400e+02
3 6.27400e+02 9.96400e+02