#include using namespace std; string s; int t; int main() { for (int i = 0; i < 3; i++) { cin >> s; for (int j = 0; j < 3; j++) { if (s[j] == '#') t += (1 << (i * 3 + j)); } } if (t == 341 || t == 170) cout << "Yes" << endl; else cout << "No" << endl; }