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