#include "bits/stdc++.h" using namespace std; #ifdef LOCAL #include "header/debug.h" #else #define debug(x...) 42 #endif #define int long long using ll = long long; void solve () { string s; cin >> s; if ( s[0] == 'x'){ ll ans = stoll(s.substr(1)); cout << (ll)((1LL<<32) -(ll)(ans)) << endl; } else{ cout << s << endl; } } signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(0); int tt = 1; // cin >> tt; while (tt--) { solve(); } }