#include<iostream>
#include<string>
using namespace std;
int main()
{
char a[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' };
int b[10] = {0};
int t, count=0,k;
cin >> t;
if (t == 0)cout << count;
while (t)
{
k = t % 16;
t /= 16;
b[count++]=k;
}
while (count)
{
cout << a[b[count - 1]];
count--;
}
system("pause");
return 0;
}
#include<string>
using namespace std;
int main()
{
char a[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' };
int b[10] = {0};
int t, count=0,k;
cin >> t;
if (t == 0)cout << count;
while (t)
{
k = t % 16;
t /= 16;
b[count++]=k;
}
while (count)
{
cout << a[b[count - 1]];
count--;
}
system("pause");
return 0;
}