a,b=input().split() o=0 if '.' in a: o=1 a=a[:a.index('.')] if '.' in b: o=1 b=b[:b.index('.')] print(int(a)+int(b)+o)