const b = readline().split('');
const a = readline().split('');
let c = 0
let res='';
while( a.length || b.length || c) {
  c += ~~a.pop() + ~~b.pop()
  res = c%10 + res;
  c = c>9 ? 1 : 0;
}
console.log(res)