#include #ifdef LOCAL #include "./debug.cpp" #else #define debug(...) #define print_line #endif using namespace std; using ll = long long; int main() { string S; cin >> S; if (S[0] == 'x') { S = string(S.begin() + 1, S.end()); int T = stoi(S); cout << (1ll << 32) - T << endl; } else { cout << S << endl; } }