#include <iostream> using namespace std; int main(){ int n; scanf("%d",&n); printf("%X",n); return 0; }