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