m, d = list(map(int, input().split()))
ans = m + d
if ans == 5:
    print(21)
else:
    print(ans)