&fras"input" ⊜(-@0)⊸≠@\n Step ← ⊃(▽>⊙°⊏)(⊂⊡)⊸˜⨂/↥⊸↘+₁¯ Solve ← °⊥₁₀◌◌⍢(⊃-₁Step|±) &s/+≡⊸(Solve 2 ˜∩∘[]) &s/+≡ (Solve 12˜∩∘[])