Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Score : $100$ points
Problem 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.
Constraints
- $x$ and $y$ are integers.
- $1 ≤ x < y ≤ 12$
Input
Input is given from Standard Input in the following format:
$x$ $y$
Output
If $x$ and $y$ belong to the same group, print Yes
; otherwise, print No
.
题意翻译
### **题目描述**
#### 现在有两个序(如下图)
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACQCAYAAAAmyD14AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAbYUlEQVR4nO3df0wUZ/4H8Pd9u0k3WS6QYG57YrBZ77bUo1zE0nZ7bGAbfyCi+OsqHkLxN1GuimKx2IraQ9SeWhUQPNGuSNDCKafgodITQ68EUWhIynmbuIkk3LlXNgcpm8xdx/D9g9ut1gWW2WVnFt+vZJJ2Z9j9uLMz73lmnnnmR4ODg4MgIiIao/+TuwAiIgpMDBAiIpKEAUJERJIwQIiISBIGCBERScIAISIiSRggREQkCQOEiIgkYYAQEZEkDBAiIpKEAUJERJIwQIiISBIGCBERScIAISIiSVTj9cZ37tzB/fv38fDhQ/T19Y3XxxARkRshISEICQnBlClTMHPmTISEhPj+QwZ96Ntvvx3Mz88fDAsLGwTAiRMnTpwUMiUkJAzW1dX5cpc/+KPBQd88UOqrr75CUlISenp6AAA6nQ7R0dHQarUIDg72xUcQEZGH+vv70dfXB6vVio6ODgiCAADIyMjA8ePHERQU5PVn+CRA7ty5A5PJhIGBAcTExGDPnj0wGo1eF0dERN5zOBwwm83Yu3cvHA4HFi1ahOrqaqhU3l3F8DpA+vr6EBERAZvNhpSUFJw4ccLrooiIyPcsFgvmzJkDu92O3bt3Iz8/36v38zpAtmzZgqNHj8JoNOLy5csMDyIiBWtubsbChQsBAB0dHYiMjJT8Xl514xUEAeXl5QCA/fv3M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lwqlTp7BgwQKUl5fj/PnzCA0Nhd1uh8PhQGhoqGKHYSHlO3fuHIChrru5ubkjLltaWsoA8RADxAOpqakAvu/ppFQqlQqlpaVYvHgxzp07h87OToiiCJPJhOXLl2P58uWKvr8lJiYGt2/fxuHDh9HS0oKBgQFMmzYNCQkJWL9+vWLD48033wSAMY1coNVqkZqa6up+TeNrLJ1eGB6eU+7eREFKS0vlLmFM5s6dG7B92sPDwwPubmDnDZtjodfrA+53Fcj4XY8P3khIRESSMECIiEgSBggREUnCACEiIkkYIEREJAkDhOgZ5Xy+SlBQkMyVkDuBsH5kDRDnPQmiKMpZBtEzyfkUyxdffHFc3p/bt3fGe/34gqwBEhERAQAjDgBIRL4niqJrdOOXXnppXD6D27d0/lg/viBrgMTFxQEAmpubFfmUPKKJqr6+HjabDZGRkYiMjByXz+D2LZ0/1o8vyBogkyZNQnJyMgRBUOyzuokmGofD4XrEcVZW1rh9Drdvafy1fnzhR4ODg4NyFtDU1ASTyQS1Wo1bt24p8lkVRBNJWloaamtr8eqrr6KlpWVcx0fj9j12/lw/3pK9F1Z8fDwyMzOfGK+fiHxPEASsWrUKtbW1CAkJQUVFxbjvnLh9e06O9eMt2QMEAD7++GPExsbCYrEgLi4O165dk7skogmlqakJcXFxqKmpQVBQEK5cueK6yD3euH2PTs714w3ZT2E5DQwMYMGCBWhqagIwNFrp7Nmz+chJIi/Y7XbcvHnT9TjjiIgIXLp0ye87J27f7ill/Ug2qDBFRUWDL7zwwiAATpw4+WiaMmXK4P79+we/++47bt8KnJSyfsZKMS2Qx4miiM8//xz37t1DX1+f3OUQBayQkBBERkYiLi5OMefTuX1/T4nrZywUGSBERKR8iriITkREgYcBQkREkjBAiIhIEgYIERFJwgAhIiJJGCBERCQJA4SIiCRhgBARkSQMECIikoQBQkREkjBAiIhIEgYIERFJwgAhIiJJ/h+LE2BKHsS+aQAAAABJRU5ErkJggg==)
#### 给你两个数,问你这两个数是不是在同一个序列里面的。
### **输入格式**
#### 一行,两个整数x,y(1≤x,y≤12)。
### **输出格式**
一行如果x和y在同一个序列里,就输出Yes,否则输出No。
### **输入样例1**
```
1 3
```
### **输出样例1**
```
Yes
```
### **输入样例2**
```
2 4
```
### **输出样例2**
```
No
```