#include using namespace std; int main(){ vector s(3), t(3); s[0] = "#.#"; s[1] = ".#."; s[2] = s[0]; t[0] = s[1]; t[1] = s[0]; t[2] = t[0]; vector S(3); for(int i = 0; i < 3; i++) cin >> S[i]; if(S == s || S == t) cout << "Yes" << endl; else cout << "No" << endl; }