#include <bits/stdc++.h> using namespace::std; int main() { string str; while (getline(cin, str)) { uint64_t sum = 0; uint64_t bit = 0; string head = str.substr(0, 2); if (head.compare("0x")) { return -1; } for (uint64_t i = str.size()-1; i > 1; i--) { ...