#include using namespace std; typedef long long ll; int main() { ll a, b; cin >> a >> b; if (a % b == 0) { cout << "No\n"; return 0; } for (ll i = 3; i * i <= b; i++) { if (a % i == 0 && b % i == 0) { a /= i; b /= i; } } if (b % 2 == 0) { cout << "No\n"; } else { cout << "Yes\n"; } return 0; }