# Experimental!

$ 7 6 4 2 1
$ 1 2 7 8 9
$ 9 7 6 2 1
$ 1 3 2 4 5
$ 8 6 4 4 1
$ 1 3 6 7 9
Raw ←

Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw

IsSafe ← /×∨∩(×⊃≥₁≤₃ ≡(-°⊟)◫₂) ⟜⇌

Part₁ ← /+ ≡IsSafe Records

Dampened ← ≡(⍜↻↘₁) ⇡⧻⟜¤
Part₂    ← /+ ≡(/∨≡IsSafe Dampened) Records

⊂⊃Part₁Part₂