#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main (){
long long a,b,c,d;
cin >> a>>b>>c>>d;
if (a + b + c == d ||
a + b - c == d ||
a - b + c == d ||
a - b - c == d ||
a * b + c == d ||
a * b - c == d ||
a + b * c == d ||
a - b * c == d ||
a * b * c == d) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlIDxiaXRzL3N0ZGMrKy5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbiAoKXsKbG9uZyBsb25nIGEsYixjLGQ7CmNpbiA+PiBhPj5iPj5jPj5kOwogCiAKICAgIGlmIChhICsgYiArIGMgPT0gZCB8fAogICAgICAgIGEgKyBiIC0gYyA9PSBkIHx8CiAgICAgICAgYSAtIGIgKyBjID09IGQgfHwKICAgICAgICBhIC0gYiAtIGMgPT0gZCB8fAogICAgICAgIGEgKiBiICsgYyA9PSBkIHx8CiAgICAgICAgYSAqIGIgLSBjID09IGQgfHwKICAgICAgICBhICsgYiAqIGMgPT0gZCB8fAogICAgICAgIGEgLSBiICogYyA9PSBkIHx8CiAgICAgICAgYSAqIGIgKiBjID09IGQpIHsKICAgICAgICBjb3V0IDw8ICJZRVMiIDw8IGVuZGw7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgIk5PIiA8PCBlbmRsOwogICAgfQogCiAgICByZXR1cm4gMDsKfQ==