var
a,b,c:string;
i,j:integer;
begin
assign(input,'add.in');
reset(input);
assign(output,'add.out');
rewrite(output);
readln(a);
readln(b);
if length(b)>length(a)then begin c:=b;b:=a;a:=c;c:='';end;
j:=length(b);
i:=length(a);
while j<>0do
begin
a[i]:=chr(ord(a[i])+ord(b[j])-48);
if ord(a[i])-48>9then begin a[i]:=chr(ord(a[i])-ord(9)-1);a[i-1]:=chr(ord(a[i-1])+1);end;
dec(i);
dec(j);
end;
writeln(a);
close(input);
close(output);
end.