N,K = map(int,input().split()) if N % 3 == 0: print('NO') exit() cnt = 0 while N != 1: if N % 2 == 0: N //= 2 else: N -= 3 cnt += 1 print('YES' if cnt <= K else 'NO')