#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ vector s(3); for(int i=0; i<3; ++i) cin >> s[i]; if(s[0]=="#.#" && s[1]==".#." && s[2]=="#.#") cout << "Yes\n"; else if(s[0]==".#." && s[1]=="#.#" && s[2]==".#.") cout << "Yes\n"; else cout << "No\n"; return 0; }