#include <bits/stdc++.h>
using namespace std;
int sq[4][4];
bool check(int x, int y, int color) {
  int tmp = sq[x][y];
  sq[x][y] = color;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      int c = sq[i][j];
      if (sq[i][j + 1] == c && sq[i + 1][j + 1] == c && sq[i + 1][j] == c) {
        sq[x][y] = tmp;
        return true;
      }
    }
  }
  sq[x][y] = tmp;
  return false;
}
int main() {
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      char tmp;
      cin >> tmp;
      if (tmp == '#') sq[i][j] = 1;
    }
  }
  bool flag = false;
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      for (int k = 0; k < 2; k++) {
        flag = check(i, j, k);
        if (flag) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
