#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); long long a, b, c, x; cin >> a >> b >> c >> x; long long g = gcd(a, gcd(b, c)); if (x % g == 0) { cout << "Yes\n"; } else { cout << "No\n"; } }