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