/** * @FileName a.cpp * @Author kanpurin * @Created 2022.05.20 21:23:25 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s[3]; for (int i = 0; i < 3; i++) { cin >> s[i]; } if (s[0] == "#.#" && s[1] == ".#." && s[2] == "#.#") { puts("Yes"); } else if (s[0] == ".#." && s[1] == "#.#" && s[2] == ".#.") { puts("Yes"); } else { puts("No"); } return 0; }