a = int(input())
b = int(input())
c = (int)a | b
print c