#include using namespace std; long long gcd(long long a,long long b){ if(a%b == 0)return b; else return gcd(b,a%b); } int main(){ long long a,b,c,x;cin>>a>>b>>c>>x; if(!(x%gcd(a,gcd(b,c))))cout << "Yes" << endl; else cout << "No" << endl; }