public bool Run(FiniteAvtomat finit, string s) { finit.Reset(); foreach (char c in s) { finit.NewSymbol(c); } return(finit.Check()); }