using System; using System.Collections; using System.Collections.Generic; class Example { private static bool f (string t) { Stack s = new Stack(); int j,k,m; string c, open = "([{<", close = ")]}>"; for (j=0; j]]])(<>)(){}}]","]()(){<>}[[()]]", "[(sjd),'2'],<2:3> [<>]","{[[[[((()))]]<]>]}"}; for (int j=0; j<4; j++) Console.Write(f(t[j])+" "); } }