Cards ← ⊜(⊜(□⊜⋕≠@ .)≠@|.↘+1⊗@:.)≠@\n.&fras"04.in" Wins ← ≡(/+/+⊐/⊞∊) N ← ⧻Cards One ← /+ⁿ:2-1▽>0. Fold ← ⊃(+1)(+⊙(×⊡):⊙.)⊃∘(⊙(⊡⊙.):) Two ← /+⊙;;⍥Fold N 0 =.⊃∘≡(↙N°⊚⊂:N++1⊙⇡) ⇡N ⊃One Two Wins Cards