text: def main():
      # input
      A, B = map(int, input().split())
  
      # compute
  
      # output
      if 1*A <= B <= 6*A:
          print('Yes')
      else:
          print('No')
  
  
  if __name__ == '__main__':
      main()
  