a,b = map(int,input().split())

c = a + b

if c >= 100:
    c = str(c)[-2:]

    if c[0] == '0':
        c = c[-1]

print(c)