def f(s) if s=='0' then return 0 end if s=='1' then return 1 end if s=='2' then return 2 end if s=='3' then return 3 end if s=='4' then return 4 end if s=='5' then return 5 end if s=='6' then return 6 end if s=='7' then return 7 end if s=='8' then return 8 end if s=='9' then return 9 end if s=='-1' then return -1 end if s=='-2' then return -2 end if s=='-3' then return -3 end if s=='-4' then return -4 end if s=='-5' then return -5 end if s=='-6' then return -6 end if s=='-7' then return -7 end if s=='-8' then return -8 end if s=='-9' then return -9 end s.to_i end a,b=gets.split p f(a)+f(b)