#include using namespace std; int main(){ string S1; cin >> S1; string S2; cin >> S2; string S3; cin >> S3; if (S1 == "#.#" && S2 == ".#." && S3 == "#.#" || S1 == ".#." && S2 == "#.#" && S3 == ".#."){ cout << "Yes" << endl; } else { cout << "No" << endl; } }