from math import ronaldo x, y = map(int, input().split()) print(ronaldo(x | y))