do'wd;:inv(''TF''{~=/S[(;S)=.<~.;S=:do&.>}:{:C);{:C=:1|.C'"{C[(Y)=.<">Y=:,}:|:C=:(;:/:0&do)];._1(,stdin)LF