#include using namespace std; //変数デバッグ #define DEB(variable) cout << #variable << "=" << variable << endl //for簡易表記(引数ミス防止) #define INFOR(inc, a, b) for (int inc = (a); (inc) < (b); (inc)++) //incをaにし、b-a回(iがb未満の間)処理を行う #define DEFOR(inc, a, b) for ((inc) = (a); (inc) > (b); (inc)--) //incをaにし、a-b回(iがbより大きい間)処理を行う int main(){ int a,b,c,d,e,f; cin>>a; cin.ignore(); cin>>b; cin.ignore(); cin>>c; cin>>d; cin.ignore(); cin>>e; cin.ignore(); cin>>f; if(ad){ cout<<"YES"; }else{ if(be){ cout<<"YES"; }else{ if(cf){ cout<<"YES"; }else{ cout<<"YES"; } } } cout<