It's tedious, but you could literally even do this by hand. I'm pretty sure I've done worse coordinate bash back when I did math competitions in high school.