#include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b, c, x; cin >> a >> b >> c >> x; if (x % __gcd(__gcd(a, b), c) == 0) cout << "Yes\n"; else cout << "No\n"; }