#include using namespace std; int main(){ long long a, b; cin >> a >> b; while(b % 2 == 0){ b /= 2; } while(b % 5 == 0){ b /= 5; } cout << (b == 1 ? "No" : "Yes") << endl; }