#include <iostream>
#include <string>
using namespace std;
string toHexString(int n);
int main() {
int n;
cin >> n;
string hexStr = toHexString(n);
cout << hexStr << endl;
return 0;
}
string toHexString(int n) {
// write your code here......
string s="";
while(n!=0)
{
int x=n%16;
if(x>=0&&x<=9)
{
char c=x+'0';
s=c+s;
}
else
{
char c=x-10+'A';
s=c+s;
}
n/=16;
}
return s;
}

京公网安备 11010502036488号