#include #include #include int main(void) { char S[11]; scanf("%s", S); if(S[0] == 'x') { char tmp[10]; double x, y; for(int i = 1; i < 11; i++) { tmp[i-1] = S[i]; } x = pow(2,32); y = (double)atoi(tmp); long long ans = (long long)(x - y); printf("%lld", ans); } else { int ans = atoi(S); printf("%d", ans); } return 0; }