Edge Checker 2

AtCoder
IDabc285_a
Time2000ms
Memory256MB
Difficulty
Determine if there is a segment that directly connects the points numbered $a$ and $b$ in the figure below. ![image](https://img.atcoder.jp/abc285/080021a4ef4143f82d024ce3b4cfd00f.png) ## Constraints * $1 \leq a \lt b \leq 15$ * $a$ and $b$ are integers. ## Input The input is given from Standard Input in the following format: $a$ $b$ [samples]
Samples
Input #1
1 2
Output #1
Yes

In the figure in the Problem Statement, there is a segment that directly connects the points numbered $1$ and $2$, so `Yes` should be printed.
Input #2
2 8
Output #2
No

In the figure in the Problem Statement, there is no segment that directly connects the points numbered $2$ and $8$, so `No` should be printed.
Input #3
14 15
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "Edge Checker 2",
    "description": {
      "content": "Determine if there is a segment that directly connects the points numbered $a$ and $b$ in the figure below. ![image](https://img.atcoder.jp/abc285/080021a4ef4143f82d024ce3b4cfd00f.png)",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc285_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Determine if there is a segment that directly connects the points numbered $a$ and $b$ in the figure below.\n![image](https://img.atcoder.jp/abc285/080021a4ef4143f82d024ce3b4cfd00f.png)\n\n## Constraints...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments