pub fn parse(input: &str) -> Input
Build four precomputed grids of the next coordinate in each direction for every point.