/*
#include <stdio.h>
int s[80001]= {};
int top=-1;
int push(int a)
{
top++;
s[top]=a;
}
int pop()
{
if(top!=-1)
{
top--;
}
}
int main()
{
long long int n, hi[100000]={}, sum=0;
scanf("%lld", &n);
for(long long int i=0;i<n;i++)
{
scanf("%lld", &hi[i]);
}
for(long long int i=0;i<n;i++)
{
while(s[top]<=hi[i] && top!=-1)
{
pop();
}
sum+=top+1;
push(hi[i]);
}
printf("%lld", sum);
}
*/
#include <stdio.h>
#include <string.h>
int s[100000] = {};
int top = -1;
int push(int a) {
top++;
s[top] = a;
}
void pop() {
if(top != -1) {
top--;
}
}
int main() {
char a[110] = {}, b[110] = {};
gets(a);
gets(b);
push(a-48);
pop();
push(b-48);
pop();
if(strlen(a)>strlen(b))
{
for(long long int i=1;i<=strlen(b);i++)
{
push(a[i]+b[i]);
}
printf("%s", s);
}
else if(strlen(a)<strlen(b))
{
for(long long int i=1;i<=strlen(a);i++)
{
push(a[i]+b[i]);
}
printf("%s", s);
}
else
{
for(long long int i=1;i<=strlen(a);i++)
{
push(a[i]+b[i]);
}
printf("%s", s);
}
return 0;
}