Problem2338--Rolling Dice(掷骰子)

2338: Rolling Dice(掷骰子)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 1024 MB
Score : 100100 points
投掷一个六面骰子1、2、…、6 A次时,有可能得到B的总和吗?
(骰子有6个面,6个面上的点数分别是:1 2 3 4 5 6)

Problem Statement

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

Constraints

  • 1 \leq A \leq 1001≤A≤100
  • 1 \leq B \leq 10001≤B≤1000
  • AA and BB are integers.

Input

Input is given from Standard Input in the following format:
AABB

Output

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

Sample Input Copy

2 11

Sample Output Copy

Yes

HINT

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.

Source/Category