output_description: If the given triple is poor, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: def main():
      import sys
  
      input = sys.stdin.readline
      import bisect
  
      N, K = [int(x) for x in input().split()]
      A = [int(x) for x in input().split()]
  
      A_m = [abs(int(x)) for x in A if x < 0]
      A_m.sort()
      N_m = len(A_m)
  
      A_p = [int(x) for x in A if x > 0]
      A_p.sort()
      N_p = len(A_p)
  
      M = N_m * N_p
      P = (1 / 2) * (N_m) * (N_m - 1) + (1 / 2) * (N_p) * (N_p - 1)
      Z = (1 / 2) * N * (N - 1) - (M + P)
  
      if M < K <= M + Z:
          print(0)
          sys.exit()
  
      def cnt_M(x):
          cnt = 0
          for i in A_m:
              cnt += bisect.bisect_right(A_p, x // i)
          return cnt >= (M - K + 1)
  
      if K <= M:
          left = -1 - 10**18
          right = 1 + 10**18
          while right - left > 1:
              mid = (left + right) // 2
              if cnt_M(mid):
                  right = mid
              else:
                  left = mid
          print(-right)
          sys.exit()
      K -= M + Z
  
      def cnt_P(x):
          cnt = 0
          ng = 0
          for i in A_m:
              cnt += bisect.bisect_right(A_m, x // i)
              if i**2 <= x:
                  ng += 1
          for j in A_p:
              cnt += bisect.bisect_right(A_p, x // j)
              if j**2 <= x:
                  ng += 1
          return (cnt - ng) // 2 >= K
  
      left = -1 - 10**18
      right = 1 + 10**18
      while right - left > 1:
          mid = (left + right) // 2
          if cnt_P(mid):
              right = mid
          else:
              left = mid
  
      print(right)
  
  
  main()
  
problem_description: Statement
  
  A triple of numbers is said to be _poor_ when two of those numbers are equal
  but the other number is different from those two numbers.
  
  You will be given three integers A, B, and C. If this triple is poor, print
  `Yes`; otherwise, print `No`.
samples: [{"input": "5 7 5", "output": "Yes\n    \n\nA and C are equal, but B is different from those two numbers, so this triple\nis poor.\n\n* * *"}, {"input": "4 4 4", "output": "No\n    \n\nA, B, and C are all equal, so this triple is not poor.\n\n* * *"}, {"input": "4 9 6", "output": "No\n    \n\n* * *"}, {"input": "3 3 4", "output": "Yes"}]