output_description: If it is possible for Snuke to reach the state where the box contains a ball
  on which the integer K is written, print `POSSIBLE`; if it is not possible,
  print `IMPOSSIBLE`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N K
      A_1 A_2 ... A_N
attempt: length, target = map(int, input().split(" "))
  balls = sorted([int(n) for n in input().split(" ")])
  minimum = balls[0]
  all_div = 1 if minimum > 1 else 0
  all_even = 1
  if target > balls[-1]:
      print("IMPOSSIBLE")
  else:
      for t in balls:
          if t == target:
              print("POSSIBLE")
              break
          if t % minimum != 0:
              all_div = 0
          if t % 2 == 1:
              all_even = 0
      else:
          if all_div:
              print("IMPOSSIBLE")
          elif all_even and target % 2 == 0:
              print("IMPOSSIBLE")
          elif:
              print("POSSIBLE")
problem_description: Statement
  
  There is a box containing N balls. The i-th ball has the integer A_i written
  on it. Snuke can perform the following operation any number of times:
  
    * Take out two balls from the box. Then, return them to the box along with a new ball, on which the absolute difference of the integers written on the two balls is written.
  
  Determine whether it is possible for Snuke to reach the state where the box
  contains a ball on which the integer K is written.
samples: [{"input": "3 7\n    9 3 4", "output": "POSSIBLE\n    \n\nFirst, take out the two balls 9 and 4, and return them back along with a new\nball, abs(9-4)=5. Next, take out 3 and 5, and return them back along with\nabs(3-5)=2. Finally, take out 9 and 2, and return them back along with\nabs(9-2)=7. Now we have 7 in the box, and the answer is therefore `POSSIBLE`.\n\n* * *"}, {"input": "3 5\n    6 9 3", "output": "IMPOSSIBLE\n    \n\nNo matter what we do, it is not possible to have 5 in the box. The answer is\ntherefore `IMPOSSIBLE`.\n\n* * *"}, {"input": "4 11\n    11 3 7 15", "output": "POSSIBLE\n    \n\nThe box already contains 11 before we do anything. The answer is therefore\n`POSSIBLE`.\n\n* * *"}, {"input": "5 12\n    10 2 8 6 4", "output": "IMPOSSIBLE"}]