#include "bits/stdc++.h" #include using namespace std; using namespace atcoder; using ll = long long; #define rep(i, n) for (long long int i = 0; i < (long long int)(n); i++) #define ALL(obj) (obj).begin(),(obj).end() long long int MOD = 998244353; int main(){ string s1,s2,s3; cin >>s1 >> s2 >> s3; if(s1 == "#.#"&&s2 ==".#."&&s3=="#.#"){ cout <<"Yes"<