#include using namespace std; #define ALL(v) v.begin(), v.end() #define V vector #define P pair using ll = long long; int main() { ll a, b; cin >> a >> b; while(b % 2 == 0) b /= 2; while(b % 5 == 0) b /= 5; if(b == 1) cout << "No" << endl; else cout << "Yes" << endl; return 0; }