program jia;
var a,b:array[1..100]of integer;
ans:array[1..200]of integer;
i,j,l,k,t:longint;
s:ansistring;
begin
assign(input,'add.in');
assign(output,'add.out');
reset(input);
rewrite(output);
fillchar(ans,sizeof(ans),0);
l:=0;
readln(s);
j:=length(s);
if j>l then l:=j;
k:=0;
for i:=j downto 1 do {if (s[i]>='0')and(s[i]<='9') then} begin
k:=k+1;
val(s[i],a[k],t);
end;
readln(s);
j:=length(s);
if j>l then l:=j;
k:=0;
for i:=j downto 1 do begin
k:=k+1;
val(s[i],b[k],t);
end;
for i:=1 to l do begin
ans[i]:=a[i]+b[i]+ans[i];
if ans[i]>9 then begin
ans[i+1]:=ans[i] div 10;
ans[i]:=ans[i] mod 10;
end;
end;
if ans[l+1]>0 then l:=l+1;
for i:=l downto 1 do write(ans[i]);
close(input);
close(output);
end.