100 atcoder#ABC208A. [ABC208A] Rolling Dice

[ABC208A] Rolling Dice

Score : 100100 points

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.

2 11
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.
2 13
No

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

100 600
Yes