You can run the code using the main method in the main class.
Then you can type the coordinates via standard input and finish the input with end.
1,2
2,2
3,2
1000000001 ,1000000002
1000000002 ,1000000002
1000000003 ,1000000002
end
2,1
2,2
2,3
1000000002,1000000002
1000000002,1000000001
1000000002,1000000003
end