#include using namespace std; #define int long long signed main(){ int A,B,C,X; cin>>A>>B>>C>>X; if(X%gcd(gcd(A,B),C) == 0) cout<<"Yes"<