pub fn parse(input: &str) -> (u32, u32)
Computes both parts together in order to reuse cached results.