a, b = map(int, input().split()) def dfs(a,b): if a==0 or b==0: return True if a%2==1 and b%2==1: return False if a%2==1 and b%2==0: dfs(a-1,b/2) if a%2==0 and b%2==1: dfs(a/2,b-1) return dfs(a-1,b/2) or dfs(a/2,b-1) if dfs(a,b)==True: print("True")