#include using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; if (s1 == "#.#" and s2 == ".#.") { if(s3 == "#.#") cout << "Yes" << endl; else cout << "No" << endl; } else if (s1 == ".#." and s2 == "#.#") { if (s3 == ".#.") cout << "Yes" << endl; else cout << "No" << endl; } else cout << "No" << endl; return 0; }