#include <bits/stdc++.h>   using namespace std;   int main() {     vector<vector<char> > v(4);     for (int i = 0; i < 4; i++) v[i].resize(4);     for (int i = 0; i < 4; i++) {       for (int j = 0; j < 4; j++) {         cin >> v[i][j];       }     }     for (int i = 0; i < 3; i++) {       for (int j = 0; j < 3; j++) {         int cntd = 0, cnth = 0;         if (v[i][j] ==  # )           cnth++;         else           cntd++;         if (v[i][j + 1] ==  # )           cnth++;         else           cntd++;         if (v[i + 1][j] ==  # )           cnth++;         else           cntd++;         if (v[i + 1][j + 1] ==  # )           cnth++;         else           cntd++;         if (cntd >= 3 || cnth >= 3) {           cout <<  YES n ;           return 0;         }       }     }     cout <<  NO n ;   }   