void f( long int x, char *p ){
int t,s;
if(x<0){
*p++='-';
x=-x;
}if(x==0)*p++='0';
char *a=p;
while(x){
t=x%16;
if(t<10)*p++=t+'0';
else *p++=t-10+'A';
x/=16;
}for(*p--=0;a<p;a++,p--)s=*a,*a=*p,*p=s;
}
void f( long int x, char *p ){
int t,s;
if(x<0){
*p++='-';
x=-x;
}if(x==0)*p++='0';
char *a=p;
while(x){
t=x%16;
if(t<10)*p++=t+'0';
else *p++=t-10+'A';
x/=16;
}for(*p--=0;a<p;a++,p--)s=*a,*a=*p,*p=s;
}