LCC '21 Contest 6 J1 - Candy Shop

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

Jason is planning to buy a lollipop which costs Y dollars. He has 3 identical coins worth X dollars each, and the shop doesn't give any change.

Can Jason purchase the lollipop without spending any extra money?

Input Specifications

The first line contains X and the second line contains Y (0 \le X, Y \le 100).

Output Specifications

Output yes if Jason can purchase the lollipop without spending any extra money or no otherwise.

Sample Input

3
6

Sample Output

yes

Comments

There are no comments at the moment.