#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ ll A, B, C, D, X; cin >> A >> B >> C >> X; D = gcd(C, gcd(A, B)); cout << (X % D == 0 ? "Yes" : "No") << endl; return 0; }