include<bits/stdc++.h>
using namespace std; long long a,b,c,d,e; int main () { cin>>a>>b>>c>>d>>e; if((a==b and a==c and a==d)||(a==e and a==c and a==d)||(a==b and b==c and b==d)||(e==b and b==c and b==d)||(a==c and b==c and c==d)||(e==c and b==c and c==d)||(e==d and b==d and c==d)||(a==d and b==d and c==d)||(e==a and b==e and e==d)||(e==c and b==e and e==d)) cout<<"YES"; else cout<<"NO"; }
Bình luận