n, k = map(int, input().split()) while n > 1: if n % 2 == 1 or n == 4: n -= 3 else: n //= 2 k -= 1 if k >= 0 and n == 1: print("YES") else: print("NO")