#include using namespace std; int main(){ string S[3]; for(auto &x : S) cin >> x; bool yes = false; if(S[0] == "#.#" && S[1] == ".#." && S[2] == "#.#") yes = true; if(S[0] == ".#." && S[1] == "#.#" && S[2] == ".#.") yes = true; cout << (yes ? "Yes" : "No"); }