#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input vector S(3); rep(i, 3) cin >> S[i]; // Output vector T = {"#.#", ".#.", "#.#"}, U = {".#.", "#.#", ".#."}; cout << (S == T || S == U ? "Yes" : "No") << endl; }