s = input()
if s[1] != '0':
    print(int(s[0]) + int(s[1:]))
else:
    print(int(s[:2]) + int(s[2:]))

7a0aa2eda73995137fe533c25e9f1a9f8ad7cbd8
<mask token>

<mask token>
if s[1] != '0':
    print(int(s[0]) + int(s[1:]))
else:
    print(int(s[:2]) + int(s[2:]))

s = input()
if s[1] != '0':
    print(int(s[0]) + int(s[1:]))
else:
    print(int(s[:2]) + int(s[2:]))
