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