#include using namespace std; using ll = long long; using vll = vector; #define all(A) A.begin(),A.end() #define rep(i, n) for (ll i = 0; i < (ll) (n); i++) int main() { vector S(3); rep(i,3)cin>>S[i]; if(S==vector({"#.#",".#.","#.#"})||S==vector({".#.","#.#",".#."})){ cout<<"Yes"<