013: Solve in Python and Rust