#include <bits/stdc++.h>
using namespace std;
char input[4][4];
bool test(int i, int j) {
  if ((i + 1) == 4 || (j + 1) == 4) return false;
  return input[i][j] == input[i + 1][j] && input[i][j] == input[i][j + 1] &&
         input[i][j] == input[i + 1][j + 1];
}
bool test() {
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      if (test(i, j)) return true;
    }
  }
  return false;
}
int main() {
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) cin >> input[i][j];
  bool tmp = test();
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      char org = input[i][j];
      if (input[i][j] == '.')
        input[i][j] = '#';
      else
        input[i][j] = '.';
      if (test()) tmp = true;
      input[i][j] = org;
    }
  }
  if (tmp)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
