#include #include #include #include using namespace std; int main() { string in; int temp; vector v; for (int i = 0; i < 2; ++i) { getline(cin,in); replace(in.begin(),in.end(),'.',' '); stringstream ss(in); while(!ss.eof()){ ss>>temp; v.push_back(temp); ss.ignore(); } } int a,b,c,aa,bb,cc; a = v.at(0); b = v.at(1); c = v.at(2); aa = v.at(3); bb = v.at(4); cc = v.at(5); if (aaa) { cout<<"YES"<bb) { cout<<"YES"<cc) { cout<<"YES"<