#include<iostream> #include<cstring> #include<cstdlib> #include<queue> using namespace std; const int M=1024; char a[M]; bool match() { queue<char> q; int i=0; while(a[i]!='