LCC '21 Contest 6 J1 - Candy Shop
View as PDFJason is planning to buy a lollipop which costs dollars. He has 3 identical coins worth
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 and the second line contains
.
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