#include<iostream> #define ll long long using namespace std; void solve() { ll a, b, c, x; cin >> a >> b >> c >> x; if (a==x||b==x||c==x) cout << "YES "; else cout << "NO "; } int main() { solve(); return 0; }