#include <bits/stdc++.h>
using namespace std;
int main() {
  char arr[4][4];
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      cin >> arr[i][j];
    }
  }
  bool found = false;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      int w = 0, b = 0;
      for (int k = i; k < i + 2; k++) {
        for (int h = j; h < j + 2; h++) {
          if (arr[k][h] == '.') {
            w++;
          } else if (arr[k][h] == '#') {
            b++;
          }
        }
      }
      if (w >= 3 || b >= 3) {
        cout << "YES" << endl;
        found = true;
        break;
      }
    }
    if (found) {
      break;
    }
  }
  if (!found) {
    cout << "NO" << endl;
  }
  return 0;
}
