#include using namespace std; int main() { long long a, b; cin >> a >> b; long long c = a+b; long long de = 0; long long ba = 1; while(c>0){ de = de + (c%10) * ba; c = c/10; ba = ba*2; } cout << de << endl; }