output_description: If x and y belong to the same group, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      x y
attempt: import numpy as np
  #from scipy.interpolate import interpld
  from matplotlib import pyplot as plt
  %matplotlib inline
  import sys
  x, y = [int(i) for i in input().split()]
  list = [1,3,5,7,8,10,12,4,6,9,11,2,0]
  slice1 = list[0:7]
  slice2 = list[7:11]
  slice3 = list[11:12]
  
  if x in slice1 and y in slice1:
      print('Yes')
  elif x in slice2 and y in slice2:
      print ('Yes')
  elif x in slice3 and y in slice3:
      print ('Yes')
  else:
      print ('No')
problem_description: Statement
  
  Based on some criterion, Snuke divided the integers from 1 through 12 into
  three groups as shown in the figure below. Given two integers x and y (1 ≤ x <
  y ≤ 12), determine whether they belong to the same group.
  
  ![b4ab979900ed647703389d4349eb84ee.png](https://atcoder.jp/img/arc074/b4ab979900ed647703389d4349eb84ee.png)
samples: [{"input": "1 3", "output": "Yes\n    \n\n* * *"}, {"input": "2 4", "output": "No"}]