#include #include using namespace std; int main() { string s1, s2, s3,a; cin >> s1 >> s2 >> s3; for (int i = 0; i < 3; i++) { if (s1[i] == s3[i] and s1[i] != s2[i]) a = "Yes"; else a="No"; } cout << a<< endl; return 0; }