read n; read _; s=$(cat -) dc -e " 1001sL [dsL]sl [dlL>l]sf 0sR [dsR]sr [dlR