Grouping

AtCoder
IDabc062_a
Time2000ms
Memory256MB
Difficulty
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. ![image](https://atcoder.jp/img/arc074/b4ab979900ed647703389d4349eb84ee.png) ## Constraints * $x$ and $y$ are integers. * $1 ≤ x < y ≤ 12$ ## Input Input is given from Standard Input in the following format: $x$ $y$ [samples]
Samples
Input #1
1 3
Output #1
Yes
Input #2
2 4
Output #2
No
API Response (JSON)
{
  "problem": {
    "name": "Grouping",
    "description": {
      "content": "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 belo",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc062_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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 belo...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments