As we all know, Skyler & Marie are the most annoying creatures to ever exist in Albuquerque. They went shopping together one day. But, Marie is a shoplifter & steals items from stores.
She asks Skyler to help her steal a necklace that she really liked. Skyler accepts to help her, but she encounters a problem while doing so.
"I thought I made myself very clear."
She has a two-sided long ribbon in which there is a binary string K. On the other side, there is a decimal prime number M.
In order to shoplift, she needs to find out if M divides the decimal equivalent of K
INPUT
OUTPUT
For the first case:
decimal equivalent of '100001' is 33. 33 is divisible by the given prime number(11), hence answer is YES.