using System.Collections;
public static void Main()
Stack stack = new Stack();
string input ="<>[]{}()(";
char [,] pair = { {'<', '>'}, {'(', ')'}, {'{', '}'}, {'[', ']'}};
foreach(char ic in input){
for(int i = 0; i< 4; i++ ){
if(ic == pair[i, 0] || ic == pair[i, 1]){