#include int main(void){ long long int a, b; scanf("%lld %lld",&a, &b); while(b % 2 == 0){ b /= 2; } while(b % 5 == 0){ b /= 5; } if(b > 1){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }