#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
                int x;
    std::cout<<"Entex Hex to Convert hex to decimal"<<endl;
    std::cin >> std::hex >> x;
    std::cout << x << std::endl;
                return 0;
}
/*
OUTPUT:
Entex Hex to Convert hex to decimal
ffff
65535
Process returned 0 (0x0)   execution time : 7.471 s
Press any key to continue.
*/