#include using namespace std; #define ll long long #define riano_ std::ios::sync_with_stdio(false);std::cin.tie(nullptr) // 最大公約数を求める ll gcd(ll x,ll y){ ll r=1; if(x<0) x *= -1; if(y<0) y *= -1; if(x<=y) swap(x,y); if(y==0) r=0; while(r>0){ r=x%y; x=y; y=r; } return x; } int main() { riano_; string ans = "No"; ll a,b,c,x; cin >> a >> b >> c >> x; ll g = gcd(a,gcd(b,c)); if(x%g==0) ans = "Yes"; cout << ans << endl; }