#include <iostream>
#include <string>
using namespace std;
template<size_t Length>
class Bitwise {
unsigned value;
friend istream& operator>>(istream& inp, Bitwise& bw) {
return inp >> bw.value;
}
friend string operator+(const Bitwise& a, const Bitwise& b) {
auto sa = to_string(a.value);
auto sb = to_string(b.value);
if (sa.length() != Length || sb.length() != Length) {
return "";
}
string box;
for (size_t i = 0; i < Length; ++i) {
auto va = sa - 48;
auto vb = sb - 48;
auto sum = va + vb;
box += to_string(sum) + ' ';
}
box.pop_back();
return box;
}
};
int main() {
Bitwise<3> a;
Bitwise<3> b;
cin >> a >> b;
cout << a + b << '\n';
}