#abc208a. A - Rolling Dice

A - Rolling Dice

Score : 100100 points

问题陈述

是否可能通过掷一个有六个面(分别为 1,2,,61,2,\ldots,6)的骰子 AA 次,得到和为 BB 的结果?

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Is it possible to get a sum of BB when throwing a die with six faces 1,2,,61,2,\ldots,6 AA times?

Constraints

  • 1A1001 \leq A \leq 100
  • 1B10001 \leq B \leq 1000
  • AA and BB are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

If it is possible to get a sum of BB, print Yes; otherwise, print No.

Sample Input 1

2 11

Sample Output 1

Yes

There are two ways to get a sum of 1111 when throwing a 66-faced die twice:

  • getting 66 in the first throw and 55 in the second throw;
  • getting 55 in the first throw and 66 in the second throw.

Sample Input 2

2 13

Sample Output 2

No

There is no way to get a sum of 1313 when throwing a 66-faced die twice.

Sample Input 3

100 600

Sample Output 3

Yes

update @ 2024/3/10 09:21:22

}