#include<iostream>

using namespace std;

int main()
{
    int in;
    cin >> hex >> in;
    cout << in;
}



我这个算作弊么=-=