#include #include #include #include #include #include #include #define basemax 50 #define sizek 25 // code output // expands in the classical form s1dddd...dddds2 on the output file // the numberss given in the form s1(d^n)s2 in the input file using namespace std; using sint=long unsigned int; // std::vector >::size_type; ifstream lresu; int main(int argc, char *argv[]) {string p,exp,ms,prefms,s1,s2; long int i,j,k,l; sint cut; char ss; while(cin>>p) {s1="";for(i=0;i