#include <bits/stdc++.h>
using namespace std;
int main() {
  char s;
  int h = 0, d = 0;
  char y[4][4];
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) cin >> y[i][j];
  }
  for (int i = 0; i <= 2; i++) {
    for (int j = 0; j <= 2; j++) {
      if (y[i][j] == '#')
        h++;
      else
        d++;
      if (y[i + 1][j + 1] == '#')
        h++;
      else
        d++;
      if (y[i][j + 1] == '#')
        h++;
      else
        d++;
      if (y[i + 1][j] == '#')
        h++;
      else
        d++;
      if (h >= 3 || d >= 3) {
        cout << "YES";
        return 0;
      }
      h = 0;
      d = 0;
    }
  }
  cout << "NO";
  return 0;
}
