#include <iostream>
using namespace std;

int main(void) {
    int n;  
    cin >> n; 
    cout << uppercase << hex << n << endl; 
}

//https://pt.stackoverflow.com/q/318767/101