#include <iostream.h>
#include <stdlib.h>
#include <alloc.h>
#include<conio.h>
void main() {
clrscr();
char mas[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
char *temp;
long a,i=0;
a=1513;
temp= (char *) malloc(200);
while (a!=0) {
temp=mas[a % 16];
i++;
a/=16;
}
temp=0;
for (long j=i-1;j>=0;j--) cout<<temp[j];
}