#include <cctype>
#include <ios>
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
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......
ostringstream os;
os << hex << n;
string s {os.str()};
transform(s.begin(), s.end(), s.begin(), ::toupper);
return s;
}

京公网安备 11010502036488号