AtCoder Beginner Contest 062
A
Grouping
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

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

翻译中…

Output

翻译中…

If $x$ and $y$ belong to the same group, print Yes; otherwise, print No.

翻译中…

样例

Input #1
1 3
Output #1
Yes
Input #2
2 4
Output #2
No
题目信息
题号
abc062_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。