#include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 int main() { long long a,b,c,x; cin>>a>>b>>c>>x; long long g = gcd(a,b); g = gcd(g,c); if(x%g==0){ cout<<"Yes"<