text: def binary_search(array, target, start, end):
      while start <= end:
          mid = (start + end) // 2
  
          if array[mid] == target:
              return mid
          elif array[mid] > target:
              end = mid - 1
          else:
              start = mid + 1
  
      return None
  
  n = int(input('Input num:'))
  array = list(map(int, input('number:').split()))
  array.sort()
  
  m = int(input('customer input:'))
  x = list(map(int, input('customer number:').split()))
  
  for i in x:
      result = binary_search(array, i, 0, n - 1)
      if result != None:
          print('yes ', end='')
      else:
          print('no ', end='')
  
  print()
  