a, b = map(int, input().split()) print('Yes' if a&b == a else 'No')