#include #include #include #include #include #include #include int main() { char* s = (char *)malloc(512000 * sizeof(char)); char t; scanf("%s", s); int q,i; scanf("%i", &q); for(i=0;ib[k+1]) { t=b[k]; b[k]=b[k+1]; b[k+1]=t; } for(j=0;j