import re A,B = input().split(" ") resultA= re.sub(r'[a-zA-Z]', '',A) resultB= re.sub(r'[a-zA-Z]', '',B) print(int(resultA)+int(resultB))