#include
#include
#include
using namespace std;
int main()
{
int i;
int x,y,z;
char *p;
;
int temp;
char ch;
vector vec1;
vector vec2;
vector vec3;
scanf("%d",&i);
;x
{ scanf("%d",&temp);
vec1.push_back(temp); }
;x
{
;y
{
)*>=vec1[x] && (pow(w,y-)-)*<=vec1[x])
break;
}
vec2.push_back(y);
}
;x
{
vec3.push_back(vec1[x]-*(pow(w,y-)-)-1);
}
;x
{ //内存的管理问题
p = (char*)malloc(sizeof(char)*(vec2[x]+1));
memset(p,,vec2[x]+1);
;y
{
) p[y]=+';
+';
vec3[x] = vec3[x]>>;
}
,z=vec2[x]-;y
{
ch = p[y];
p[y]= p[z];
p[z]=ch;
}
printf("%s\n",p);
}
}