Good numbers

Good numbers are considered the ones that are not 3 digits and are divisible by 7 and 23.
Given a number in an input print Yes if a number is a good number and No otherwise.
Input
Output
1610
Yes
7
No
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue