#include using namespace std; int main() { string A, B; cin >> A >> B; int N = max(A.size(), B.size()); reverse(A.begin(), A.end()); reverse(B.begin(), B.end()); int c = 0; for(int i=0; i0){ de = de + (c%10) * ba; c = c/10; ba = ba*2; } cout << de << endl; }