lib C fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64 end class String def to_i64 C.strtoll(self, nil, 10) end end n, k = read_line.split.map(&.to_i) if n % 3 == 0 puts "NO" else cnt = 0 while n > 1 n = n.odd? || n == 4 ? n - 3 : n // 2 cnt += 1 end puts cnt <= k ? "YES" : "NO" end