#include #include using namespace std; int main(){ string s[3]; cin>>s[0]>>s[1]>>s[2]; s[0]+=s[1]+s[2]; cout<<(s[0]=="#.#.#.#.#"||s[0]==".#.#.#.#."?"Yes":"No")<